Hello 

ansible temp -a uptime -vvv
ansible 2.9.1
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', 
u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /bin/ansible
  python version = 2.7.5 (default, Aug  7 2019, 00:51:29) [GCC 4.8.5 
20150623 (Red Hat 4.8.5-39)]
Using /etc/ansible/ansible.cfg as config file
host_list declined parsing /etc/ansible/hosts as it did not pass its 
verify_file() method
script declined parsing /etc/ansible/hosts as it did not pass its 
verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass its 
verify_file() method
Parsed /etc/ansible/hosts inventory source with ini plugin
ERROR! Unexpected Exception, this is probably a bug: 'module' object has no 
attribute 'packages'
the full traceback was:

Traceback (most recent call last):
  File "/bin/ansible", line 123, in <module>
    exit_code = cli.run()
  File "/usr/lib/python2.7/site-packages/ansible/cli/adhoc.py", line 165, 
in run
    result = self._tqm.run(play)
  File 
"/usr/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py", 
line 178, in run
    self.load_callbacks()
  File 
"/usr/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py", 
line 157, in load_callbacks
    callback_obj = callback_plugin()
  File "/usr/share/ansible/plugins/callback/foreman_callback.py", line 70, 
in __init__
    self.ssl_verify = self._ssl_verify()
  File "/usr/share/ansible/plugins/callback/foreman_callback.py", line 86, 
in _ssl_verify
    requests.packages.urllib3.disable_warnings()
AttributeError: 'module' object has no attribute 'packages'

==
in /usr/share/ansible/plugins/callback/foreman_callback.py 

==
cd /usr/share/ansible/plugins/callback/
wget 
https://raw.githubusercontent.com/theforeman/foreman_ansible/master/extras/foreman_callback.py
vi foreman_callback.py


FOREMAN_URL = os.getenv('FOREMAN_URL', "https://xxxx";)



FOREMAN_SSL_CERT = (os.getenv('FOREMAN_SSL_CERT', 
"/etc/puppetlabs/puppet/ssl/certs/xxxx.pem"),
                    os.getenv('FOREMAN_SSL_KEY', 
"/etc/puppetlabs/puppet/ssl/private_keys/xxxx.pem"))


FOREMAN_SSL_VERIFY = os.getenv('FOREMAN_SSL_VERIFY', "0")
==
Please suggest 

Thanks 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6aeed761-addd-4193-a0fa-d5aa69fcd3ac%40googlegroups.com.

Reply via email to