Project

General

Profile

Actions

Bug #31489

closed

Ansible roles cannot be imported when roles_path is defined under /etc/ansible/ansible.cfg

Added by Ondřej Ezr over 3 years ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1897707

Description of problem:

Ansible roles can not be imported when 'roles_path' is defined in /etc/ansible/ansible.cfg

Version-Release number of selected component (if applicable):
I have tested on 6.7 and 6.8

How reproducible:
100%

Steps to Reproduce:
1. Edit /etc/ansible/ansible.cfg by defining the 'roles_path' variable.
Eg.: roles_path = /root/git/ansible/roles

2. Try to import ansible roles by going to Satellite webUI -> Configure -> Roles(under Ansible section)

Actual results:
we get a message saying "No changes in roles detected on <sat/capsule>"

Expected results:
The Ansible roles should be found under /etc/ansible/roles and listed in the WebUI to be imported.

Additional info:
It seems the /etc/ansible/ansible.cfg takes precedence over /etc/foreman-proxy/ansible.cfg
in '/opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_ansible-3.0.1/lib/smart_proxy_ansible/roles_reader.rb'


Related issues 1 (0 open1 closed)

Related to Ansible - Feature #30249: Import roles from ansible collectionsClosedShira MaximovActions
Actions #1

Updated by Ondřej Ezr almost 3 years ago

  • Subject changed from Ansible roles cannot be imported when roles_path is defined under /etc/ansible/ansible.cfg to Ansible roles cannot be imported when roles_path is defined under /etc/ansible/ansible.cfg
  • Triaged changed from No to Yes
Actions #2

Updated by yifat makias almost 3 years ago

  • Status changed from New to Resolved

This issue is no longer happening therefor closing.

Actions #3

Updated by yifat makias almost 3 years ago

  • Related to Feature #30249: Import roles from ansible collections added
Actions #4

Updated by The Foreman Bot over 2 years ago

  • Assignee set to Dominik Matoulek
  • Pull request https://github.com/theforeman/smart_proxy_ansible/pull/54 added
Actions #5

Updated by The Foreman Bot 4 months ago

  • Pull request deleted (https://github.com/theforeman/smart_proxy_ansible/pull/54)
Actions

Also available in: Atom PDF