Problem:
ansible temp -b -m setup
[WARNING]: The requests
python module is not installed. Disabling the Foreman callback plugin.
[WARNING]: Skipping plugin (/usr/share/ansible/plugins/callback/foreman_callback.py) as it seems to be invalid: cannot import name certs
Expected outcome:
Results of ansible run to update the forman host records
Foreman and Proxy versions:
rpm -qa|grep -i foreman
foreman-postgresql-2.0.0-2.el7.noarch
foreman-cli-2.0.0-2.el7.noarch
tfm-rubygem-foreman-tasks-core-0.3.3-1.fm1_25.el7.noarch
tfm-rubygem-foreman_ansible-5.0.1-1.fm2_0.el7.noarch
rubygem-foreman_maintain-0.6.2-1.el7.noarch
foreman-installer-2.0.0-1.el7.noarch
foreman-release-2.0.0-1.el7.noarch
foreman-selinux-2.0.0-1.el7.noarch
foreman-2.0.0-2.el7.noarch
foreman-proxy-2.0.0-1.el7.noarch
tfm-rubygem-hammer_cli_foreman-2.0.2-1.el7.noarch
tfm-rubygem-foreman-tasks-1.0.1-3.fm2_0.el7.noarch
tfm-rubygem-foreman_remote_execution-3.0.3-2.fm2_0.el7.noarch
foreman-debug-2.0.0-2.el7.noarch
foreman-dynflow-sidekiq-2.0.0-2.el7.noarch
foreman-release-scl-7-2.el7.noarch
tfm-rubygem-foreman_remote_execution_core-1.3.0-1.el7.noarch
tfm-rubygem-foreman_ansible_core-3.0.3-1.fm2_0.el7.noarch
Foreman and Proxy plugin versions:
rpm -qa|grep -i foreman
foreman-postgresql-2.0.0-2.el7.noarch
foreman-cli-2.0.0-2.el7.noarch
tfm-rubygem-foreman-tasks-core-0.3.3-1.fm1_25.el7.noarch
tfm-rubygem-foreman_ansible-5.0.1-1.fm2_0.el7.noarch
rubygem-foreman_maintain-0.6.2-1.el7.noarch
foreman-installer-2.0.0-1.el7.noarch
foreman-release-2.0.0-1.el7.noarch
foreman-selinux-2.0.0-1.el7.noarch
foreman-2.0.0-2.el7.noarch
foreman-proxy-2.0.0-1.el7.noarch
tfm-rubygem-hammer_cli_foreman-2.0.2-1.el7.noarch
tfm-rubygem-foreman-tasks-1.0.1-3.fm2_0.el7.noarch
tfm-rubygem-foreman_remote_execution-3.0.3-2.fm2_0.el7.noarch
foreman-debug-2.0.0-2.el7.noarch
foreman-dynflow-sidekiq-2.0.0-2.el7.noarch
foreman-release-scl-7-2.el7.noarch
tfm-rubygem-foreman_remote_execution_core-1.3.0-1.el7.noarch
tfm-rubygem-foreman_ansible_core-3.0.3-1.fm2_0.el7.noarch
Distribution and version:
Centos 7.8
I did
cd /usr/share/ansible_plugins/callback_plugins
wget https://raw.githubusercontent.com/theforeman/foreman_ansible/master/extras/foreman_callback.py
vi foreman_callback.py
Updated the certs , copied from Forman box to where i am running ansible
Also installed request already & certs verified made chmod 444
Please suggest