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
Thanks for your post on Ansible, checkout our courceClassroom/Corporate/Online Training.
ReplyDeletehttps://saglamproxy.com
ReplyDeletemetin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
6M8M1