Issue:
ansible-playbook
-i dev testZip.yml
ERROR! the role 'zip' was not
found in ansible/roles:…..:/etc/ansible/roles
Solution:
Default configuration path /etc/ansible/roles
in ansible.cfg whereas current refer role zip in playbook not matching.
Modify the /etc/ansible/roles
location to your current role location
in ansible.cfg file
#roles_path = pathofyourrole/roles
#roles_path = pathofyourrole/roles
Or
Move your roles into /etc/ansible/roles directory
ansible/roles/zip
tree zip
zip
└── tasks
└── main.yml
ansible-playbook
-i dev testZip.yml
PLAY
[localhost] ****************************************************************
TASK
[zip : Install zip] ************************************************************
ok:
[localhost] => (item=['zip'])
PLAY
RECAP *******************************************************************
localhost
: ok=1 changed=0
unreachable=0 failed=0
No comments:
Post a comment
Please provide your input, it will honer for me...