ansible-interactive-tutorial icon indicating copy to clipboard operation
ansible-interactive-tutorial copied to clipboard

Minor issue in tutorial 14 - geerlingguy.java is not installed

Open jgorostegui opened this issue 4 years ago • 0 comments

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

jgorostegui avatar Mar 29 '20 11:03 jgorostegui