Ansible automation demo for Cygate Techdays 2019 by Christofer Tibbelin
So it have to be installed on the same machine as ansible.
There is a ansible plugin for rundeck that makes it easy to work with ansible.
Might be possible to install rundeck in a container. but don't know how...\
mkdir downloads
wget -P ./downloads https://github.com/Batix/rundeck-ansible-plugin/releases/download/3.0.1/ansible-plugin-3.0.1.jar
sudo apt install openjdk-8-jre-headless
java -version
echo "deb https://rundeck.bintray.com/rundeck-deb /" | sudo tee -a /etc/apt/sources.list.d/rundeck.list
curl 'https://bintray.com/user/downloadSubjectPublicKey?username=bintray' | sudo apt-key add -
sudo apt-get update
sudo apt-get install rundeck
wget -P /var/lib/rundeck/libext https://github.com/Batix/rundeck-ansible-plugin/releases/download/3.0.1/ansible-plugin-3.0.1.jar
rundeck just really nead read access
sudo chown rundeck:rundeck /var/lib/rundeck/libext/ansible-plugin-3.0.1.jar
for me it was version 2.5
sudo rm /var/lib/rundeck/libext/rundeck-ansible*
sudo chown rundeck:rundeck /var/lib/rundeck
Same with the /etc/rundeck as it's used for ACL lists.
sudo chown rundeck:rundeck /etc/rundeck
sudo usermod -a -G rundeck cygate
Or the opposite
sudo usermod -a -G cygate rundeck
This should not give any java errors or such.
sudo su rundeck -s /bin/bash -c "ansible all -m ping"
sudo systemctl enable rundeckd
sudo systemctl restart rundeckd
go to: http://localhost:4440 login with admin:admin