-
Bug
-
Resolution: Done
-
Major
-
None
Description of problem:
After installing a fresh Capsule 6.13 system and enabling the Ansible feature on it, The callback plugin remains set as "theforeman.foreman.foreman"
Due to this, even if all ansible role executions would happen fine, foreman_callback will never happen and hence no ansible facts would be uploaded back to satellite via capsule
Version-Release number of selected component (if applicable):
Red Hat Capsule 6.13.4
How reproducible:
Always
Steps to Reproduce:
1. Install a Satellite and Capsule 6.13
2. Enable ansible feature on capsule using # satellite-installer --enable-foreman-proxy-plugin-ansible
3. Check the callback plugin mentioned in /etc/foreman-proxy/ansible.env and /etc/foreman-installer/scenarios.d/capsule-answers.yaml of capsule server
Actual results:
- grep theforeman /etc/foreman-installer/scenarios.d/capsule-answers.yaml
callback: theforeman.foreman.foreman
- cat /etc/foreman-proxy/ansible.env | grep theforeman
export ANSIBLE_CALLBACK_WHITELIST="theforeman.foreman.foreman"
export ANSIBLE_CALLBACKS_ENABLED="theforeman.foreman.foreman"
Expected results:
- grep callback /etc/foreman-installer/scenarios.d/capsule-answers.yaml
callback: redhat.satellite.foreman
- grep CALLBACK /etc/foreman-proxy/ansible.env
export ANSIBLE_CALLBACK_WHITELIST="redhat.satellite.foreman"
export ANSIBLE_CALLBACKS_ENABLED="redhat.satellite.foreman"
Additional info:
The wrong callback plugin , would still allow the role to run but It will not allow the ansible facts to be uploaded back to satellite as it fails to load.
~~
[WARNING]: Skipping callback plugin 'theforeman.foreman.foreman', unable to
6:
load
~~