Description of problem: On CentOS/RHEL ansible roles installed from RPM are by default stored in '/usr/share/ansible/roles' directory. Due to this standard CentOS Extras and RHEL ansible package contains by default in /etc/ansible/ansible.cfg path to both directories: roles_path = /etc/ansible/roles:/usr/share/ansible/roles Because ansible package will no longer be updated in CentOS Extras, we would like to switch to ansible package from EPEL (instead of rebuilding the package within CentOS Virt SIG), but without above change we cannot do that. And it also makes sense to use the same standard for Fedora, so ansible roles packagers will not need to make differences in spec files between Fedora and CentOS. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Created attachment 1393240 [details] Patch to change default roles_path to both directories Attached the patch we are using when rebuilding ansible package to provide default roles_path with both directories
Is it possible to backport this change also to current ansible-2.4.3 packages for FC27 and EPEL?
Doesn't https://github.com/ansible/ansible/pull/23038 address your need already? I made the change to the default configuration file before that PR appeared in a released version, but now the PR should be included in a released version (2.4) already.
That said, I think it it worth to make the default configuration file in the EPEL package identical to the one in the Extras package. This will save the users some work with merging the .rpmnew/.rpmsave files.
(In reply to Pavel Cahyna from comment #3) > Doesn't https://github.com/ansible/ansible/pull/23038 address your need > already? I made the change to the default configuration file before that PR > appeared in a released version, but now the PR should be included in a > released version (2.4) already. Ha, I didn't know about this PR and I've created the bug after yesterday's email discussion with Kevin :-) Ondro, could you please verify that already released 2.4.3 package [1] contains that change so we don't need to patch ansible.cfg? [1] https://koji.fedoraproject.org/koji/buildinfo?buildID=1022839
(In reply to Martin Perina from comment #5) > > Ondro, could you please verify that already released 2.4.3 package [1] > contains that change so we don't need to patch ansible.cfg? Yes, it works nice.
OK so closing based on above