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.
Updated by Ondřej Ezr over 3 years ago
- Subject changed from Foreman callback is run always not just for roles to Foreman callback is run always not just for roles
- Parent task set to #31404
- Found in Releases foreman_ansible-6.1.1 added
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to Adam Ruzicka
- Pull request https://github.com/theforeman/foreman_ansible/pull/390 added
Updated by Ondřej Ezr over 3 years ago
- Related to Bug #23879: Ansible REX job shall not update host Configuration status added
Updated by Adam Ruzicka over 3 years ago
- Related to Feature #31890: Consume the reports callback from the foreman ansible collection added
Updated by Adam Ruzicka over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_ansible|0fadb8bde04c859b262460143dfb93be4b0e8e7a.