galaxy import job put roles in ~user/.ansible/roles while UI Import expects roles to be in /etc/ansible/roles
For import to work the roles gotta be in /etc/ansible/roles
Ansible Galaxy import job put them under ~user/.ansible/roles
(regression since this was already working)
We didn't output from the ruby helper, so the option was never used.
Also the default for ansible-galaxy has changed and this is a quick fix to use our default.
This should be overpassed by local configuration file in working directory we run ansible from.
#1 Updated by Lukas Pramuk about 3 years ago
tfm-rubygem-foreman_ansible-2.0.4-1.fm1_18.el7.noarch > updated to foreman_ansible (2.1.0)
#2 Updated by Ondřej Pražák over 2 years ago
You are right, the default import path for ansible-galaxy install command has changed. The initial driver for change was that regular users do not have write access to /etc/ansible/roles, so the command is broken for them by default. There are 2 ways users can deal with the default path change:
1) users can do 'ansible-galaxy install owner.role -p /etc/ansible/roles'
2) users can add ~/.ansible/roles into roles_path in ansible.cfg
Is there any specific change you would like to see to resolve this issue?
#6 Updated by Ondřej Ezr 3 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_ansible|2ac1511b02ac7ce56c7ae8c1cb2be0f791e05443.