Project

General

Profile

Actions

Bug #32020

closed

Tracker #31404: Improve Ansible integration so it is usable as CfgMngmt tool

Foreman callback is run always not just for roles

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

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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.


Related issues 2 (0 open2 closed)

Related to Ansible - Bug #23879: Ansible REX job shall not update host Configuration statusClosed06/11/2018Actions
Related to Ansible - Feature #31890: Consume the reports callback from the foreman ansible collectionResolvedActions
Actions

Also available in: Atom PDF