Hi
I have setup the plugin for forman
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
# 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]
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