Bug #32020
closedTracker #31404: Improve Ansible integration so it is usable as CfgMngmt tool
Foreman callback is run always not just for roles
Description
We are running Foreman callback and thus creating the configuration report for every ansible run initiated by foreman.
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1934110
Description of problem:
When Foreman used ansible-playbook, it disabled the callback plugin for all runs, except when roles were being applied.
How reproducible:
Always
Steps to Reproduce:
1. Bump ansible verbosity to -vvvv in Administer > Settings > Ansible > Default verbosity level
2. Run for example ls -la / using ansible
3. Check the output
Actual results:
Line "Loading callback plugin foreman of type notification, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/foreman.py" appears in the output, run is slow.
Expected results:
The callback plugin is not loaded, no such line in output, faster run.
Additional info:
The current callback plugin is not exactly ideal performance wise and might cause severe performance degradation, depending on number of hosts and the playbook being run.