Project

General

Profile

Bug #23288

galaxy import job put roles in ~user/.ansible/roles while UI Import expects roles to be in /etc/ansible/roles

Added by Lukas Pramuk about 3 years ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

For import to work the roles gotta be in /etc/ansible/roles

vs.

Ansible Galaxy import job put them under ~user/.ansible/roles

(regression since this was already working)


Related issues

Related to Ansible - Bug #31488: Install Roles from Galaxy' does not honor the location input Closed

Associated revisions

Revision 2ac1511b (diff)
Added by Ondřej Ezr 3 months ago

Fixes #31488, #23288 - Galaxy install location

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.

History

#1 Updated by Lukas Pramuk about 3 years ago

foreman-1.18.0-0.develop.201804091403git41fe8c6.el7.noarch
katello-3.7.0-1.nightly.el7.noarch
tfm-rubygem-foreman_ansible-2.0.4-1.fm1_18.el7.noarch > updated to foreman_ansible (2.1.0)
tfm-rubygem-foreman_ansible_core-2.0.2-1.fm1_18.el7.noarch
rubygem-smart_proxy_ansible-2.0.2-3.fm1_18.el7.noarch
ansible-2.5.0-2.el7.noarch

#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?

#3 Updated by Lukas Pramuk over 2 years ago

I mean REX Galaxy Import job puts roles elsewhere than Import Roles looks after them.

REX job should put roles where import expects them otherwise this type of "out-of-box" job is then useless.

#4 Updated by Ondřej Ezr 4 months ago

  • Related to Bug #31488: Install Roles from Galaxy' does not honor the location input added

#5 Updated by The Foreman Bot 4 months ago

  • Assignee set to Ondřej Ezr
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_ansible/pull/373 added

#6 Updated by Ondřej Ezr 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF