Install Rundeck on RockyLinux with Ansible
Jump to navigation
Jump to search
Install rundeck on Alma Linux 8
Contents
1 HARDWARE
- CPU: 2
- MEM: 4GB
- DISK: 50GB
- INSTALL TYPE: MINIMAL
- SELINUX: ENFORCED
2 SETUP NOTES
2.1 Setup Ansible
You will need this as well to integrate ansible in your rundeck env.
curl -L ansible.bitbull.ch | sh
2.2 INSTALL ANSIBLE ROLES FOR SETUP
ansible-galaxy install joe-speedboat.rundeck for r in /etc/ansible/roles/*/roles/requirements.yml ; do ansible-galaxy role install -r $r ; done for c in /etc/ansible/roles/*/collections/requirements.yml ; do ansible-galaxy collection install -r $c ; done
2.3 Prepair Rundeck Setup Playbook
genpasswd() { local l=$1 [ "$l" == "" ] && l=16 tr -dc A-Za-z0-9_=., < /dev/urandom | head -c ${l} | xargs } echo " --- - hosts: localhost roles: - role: joe-speedboat.rundeck vars: mariadb_root_password: '$(genpasswd)' mariadb_user_password: '$(genpasswd)' rundeck_admin_pass: '$(genpasswd)' tasks: - yum: name=firewalld - service: name=firewalld enabled=true state=started - firewalld: service={{ item }} permanent=true immediate=true state=enabled with_items: - http - https ... " > /etc/ansible/install_rundeck.yml chmod 600 /etc/ansible/install_rundeck.yml
2.4 Install Rundeck
ansible-playbook /etc/ansible/install_rundeck.yml
2.5 First Steps
Now you can login into rundeck. Everything is setup now.
- Username: admin
- Password: see playbook