ansible foreman callback plugin

Hi

I have setup the plugin for forman

https://raw.githubusercontent.com/theforeman/foreman_ansible/master/extras/foreman_callback.py

Also install below on ansible control node

yum install -y python-pip
pip install requests

the plugin file is updated

from future import absolute_import

FOREMAN_URL = os.getenv(‘FOREMAN_URL’, “https://xxx”)

Substitute by a real SSL certificate and key if your Foreman uses HTTPS

FOREMAN_SSL_CERT = (os.getenv(‘FOREMAN_SSL_CERT’, “/etc/foreman-proxy/ssl_cert.pem”),
os.getenv(‘FOREMAN_SSL_KEY’, “/etc/foreman-proxy/ssl_key.pem”))

Ansible side is updated

[callback_foreman]

url = https://xx

ssl_cert = /etc/foreman-proxy/ssl_cert.pem
ssl_key = /etc/foreman-proxy/ssl_key.pem
verify_certs = /etc/foreman-proxy/ssl_ca.pem
callback_whitelist = foreman
bin_ansible_callbacks = True
callback_plugins = /usr/share/ansible/plugins/callback
stdout_callback = yaml

i am getting error below

any suggestions Please ?

TASK [Gathering Facts] ***********************************************************************************************************************************************************************************
ok: [xxx]
[WARNING]: Failure using method (v2_runner_on_ok) in callback plugin (<ansible.plugins.callback.foreman_callback.CallbackModule object at 0x7f6108061690>): ‘invocation’

And the host is not getting updated in UI of forman

Forman & ansible both are on same subnet & there is no firewall

thanks

This list is for generic ansible issues.
Your issue seems highly specific to a 3rd party module. I would try
that community first:

https://github.com/theforeman/foreman_ansible#foreman-ansible-arrow_forward