ERROR! Unexpected Exception, this is probably a bug: 'module' object has no attribute 'packages'

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
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’

That really looks like a bug in that callback you downloaded, I would
point you to that repo for resolving the issue.