ansible-interactive-tutorial
ansible-interactive-tutorial copied to clipboard
Minor issue in tutorial 14 - geerlingguy.java is not installed
On tutorial 14) Using roles from Ansible Galaxy - Install a Jenkins server
geerlingguy.java
I've found that role installation is missing.
Executed commands, as shown in the tutorial:
ansible-galaxy install geerlingguy.jenkins
cat hosts
cat jenkins.yaml
ansible-playbook -i hosts jenkins.yaml
Where the last command shows the following error:
ERROR! the role 'geerlingguy.java' was not found in /root/workspace/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/root/workspace
The error appears to have been in '/root/workspace/jenkins.yaml': line 5, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
roles:
- role: geerlingguy.java
^ here
One solution could be, changing the role installation step to:
ansible-galaxy install geerlingguy.jenkins geerlingguy.java