官术网_书友最值得收藏!

Setting up Rundeck

The following Ansible playbook will set up Rundeck on the Ubuntu 16.04 OS.  It also adds the Rundeck service to start up the process:

- name: installing rundeck on ubuntu 16.04
  hosts: "192.168.1.7"
  remote_user: ubuntu
  gather_facts: False
  become: True

  tasks:
    - name: installing python2 minimal
      raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)

    - name: java and curl installation
      apt:
name: "{{ item }}"
state: present
update_cache: yes
with_items: - curl - openjdk-8-jdk - name: downloading and installing rundeck deb package apt: deb: "http://dl.bintray.com/rundeck/rundeck-deb/rundeck-2.8.4-1-GA.deb" - name: add to startup and start rundeck service: name: rundeckd state: started

To set up Rundeck, run the following command. Where 192.168.1.7 is the server IP address where Rundeck will install:

ansible-playbook -i '192.168.1.7,' site.yml --ask-sudo-pass

Once it is successfully executed, navigate the browser to http://192.168.1.7:4440 and you can see the login panel for the Rundeck application. The default username and password to log in to Rundeck is admin:

Now we can create a new project to start working on. Provide a new Project Name and go with the default settings for now:

Now, we can add multiple hosts into Rundeck to perform multiple actions. The following screenshot shows an example of running the  uname -a command across multiple nodes, which matches osArch: amd64, we can also create filters for different use cases:

Using Rundeck, we can also schedule jobs to run at certain times and store the output in different formats. Rundeck also provides a REST API that can be integrated into the existing tool set.

主站蜘蛛池模板: 甘谷县| 合肥市| 定远县| 股票| 鸡泽县| 平原县| 阳泉市| 平武县| 金阳县| 内江市| 万载县| 那坡县| 新竹市| 德州市| 济南市| 山阳县| 龙门县| 内丘县| 长治县| 蓬莱市| 石棉县| 启东市| 葵青区| 准格尔旗| 高尔夫| 昌黎县| 巍山| 克山县| 安溪县| 溧水县| 封丘县| 和平区| 正宁县| 济源市| 拜泉县| 贺兰县| 泰宁县| 孟津县| 隆回县| 盐源县| 济源市|