Closed davemckenna01 closed 4 years ago
I'm not able to reproduce the issue, please make sure that you are downloading the correct version. rvm_io.ruby
I have the same issues running it on ubuntu I have role_path configured to /etc/ansible/roles installed the role with ansible galaxy and when I run the playbook I get the following error:
[workspace] $ /usr/bin/ansible-playbook ansible/deploy-linkchecker.yml -i hosts -l test2 -f 5 -e deploy_linkchecker=true [0;31mERROR! the role 'rvm_io.ruby' was not found in /var/lib/jenkins/jobs/DeployTenon/workspace/ansible/roles:/var/lib/jenkins/jobs/DeployTenon/workspace/ansible/roles:/var/lib/jenkins/jobs/DeployTenon/workspace/ansible
The error appears to have been in '/var/lib/jenkins/jobs/DeployTenon/workspace/ansible/deploy-linkchecker.yml': line 8, column 7, but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- pm2
- { role: rvm_io.ruby,
^ here
[0m FATAL: command execution failed
The playbook looks like this:
roles:
- pm2
- { role: rvm_io.ruby,
rvm1_rvm_version: 'stable',
rvm1_rubies: '{{ ruby_version }}',
rvm1_install_flags: '--auto-dotfiles',
rvm1_install_path: /usr/local/rvm,
rvm1_user: root
}
Might be related to this issue: https://github.com/rvm/rvm1-ansible/issues/179
As @manubo pointed out, I believe this is due to naming change. Closing for now, but please re-open if you face that issue.
I'm experiencing some strange behaviour when trying to install rvm. Ansible complains that the role 'rvm_io.ruby' was not found in /Users/davemckenna/Development/hdenv_test_1/vagrant/provisioning/roles:/usr/local/etc/ansible/roles:/Users/davemckenna/Development/hdenv_test_1/vagrant/provisioning
But in ansible.cfg I've explicitly set a roles_path = galaxy.roles, which would be at /Users/davemckenna/Development/hdenv_test_1/vagrant/provisioning/galaxy.roles
I have 3 galaxy roles specified in my playbook, like so:
roles: ...
and rvm_io.ruby is the only one that complains about not finding the role. The other two are found at provisioning/galaxy.roles with no problem.
When I prefix the role path with "galaxy.roles/", like so:
the role is found and rvm installs.
Is there something unique about rvm_io.ruby that would cause this?