Feature #18311

allow specifying location of roles to override /etc/ansible/roles

Added by Thomas McKay 11 months ago. Updated 10 months ago.

Status:Closed
Priority:Normal
Assigned To:Daniel Lobato Garcia
Category:-
Target version:Foreman - Team Daniel - Iteration 9
Difficulty: Pull request:https://github.com/theforeman/foreman_ansible/pull/77
Bugzilla link:

Description

Having all roles in /etc/ansible/roles for all orgs/locs is limiting. While there are a lot of different ways to solve this, being able to change it in the settings would be a minimum. Having it per org also beneficial. Having the source of roles integrated into either katello repos (file type?) or with ansible tower would be interesting.


Related issues

Related to Ansible - Bug #18455: Smart proxy should read roles from roles_path Closed 02/10/2017

Associated revisions

Revision 5e5d9033
Added by Daniel Lobato García 10 months ago

Fixes #18311 - Read /etc/ansible/ansible.cfg roles_path

Currently it's reading the hardcoded /etc/ansible/roles directory
instead of the /etc/ansible/ansible.cfg roles_path, which makes it
confusing for users who have custom roles_paths.

The implementation for reading roles_path should go in
ForemanAnsibleCore so that the proxy and Foreman can reuse the same
gem for reading roles.

History

#1 Updated by Daniel Lobato Garcia 10 months ago

The roles source is set on /etc/ansible/ansible.cfg roles_path - we should use that instead of the current hardcoded path

#2 Updated by The Foreman Bot 10 months ago

  • Status changed from New to Ready For Testing
  • Assigned To set to Daniel Lobato Garcia
  • Pull request https://github.com/theforeman/foreman_ansible/pull/77 added

#3 Updated by Daniel Lobato Garcia 10 months ago

  • Related to Bug #18455: Smart proxy should read roles from roles_path added

#4 Updated by Anonymous 10 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by Daniel Lobato Garcia 10 months ago

  • Target version set to Team Daniel - Iteration 9

Also available in: Atom PDF