I am running ansible like so:
ansible-playbook -i hosts setup_my_host_name.yml
I am getting the error:
ERROR! the role 'zzet.rbenv' was not found in /Users/user_name/repo_name/roles:/Users/user_name/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/Users/user_name/repo_name
The error appears to be in '/Users/user_name/repo_name/setup_my_host_name.yml': line 83, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
roles:
- role: zzet.rbenv
^ here
The relevant lines from the yml file are:
roles:
- role: zzet.rbenv
How can I fix the error? Is there anything missing in my ansible installation?
Install the missing role:
ansible-galaxy install zzet.rbenv
Output:
Starting galaxy role install process
- downloading role 'rbenv', owned by zzet
- downloading role from https://github.com/zzet/rbenv/archive/3.6.0.tar.gz
- extracting zzet.rbenv to /Users/user_name/.ansible/roles/zzet.rbenv
- zzet.rbenv (3.6.0) was installed successfully
REFERENCES:
SEE ALSO: