Hello i have the same problem, if i want to start an inventory job (via Dashboard) i get this message:
"ansible-inventory 2.8.5
config file = /etc/ansible/ansible.cfg
configured module search path = ['/var/lib/awx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.6/site-packages/ansible
executable location = /usr/bin/ansible-inventory
python version = 3.6.8 (default, Nov 21 2019, 19:31:34) [GCC 8.3.1 20190507 (Red Hat 8.3.1-4)]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /tmp/awx_5739_k_o5anb8/tmpx75ji8ue as it did not pass it's verify_file() method
auto declined parsing /tmp/awx_5739_k_o5anb8/tmpx75ji8ue as it did not pass it's verify_file() method
toml declined parsing /tmp/awx_5739_k_o5anb8/tmpx75ji8ue as it did not pass it's verify_file() method
[WARNING]: * Failed to parse /tmp/awx_5739_k_o5anb8/tmpx75ji8ue with script
plugin: Inventory script (/tmp/awx_5739_k_o5anb8/tmpx75ji8ue) had an execution
error: Traceback (most recent call last): File
"/tmp/awx_5739_k_o5anb8/tmpx75ji8ue", line 191, in <module> raise
AnsibleError(msg) ansible.errors.AnsibleError: Failed to import the required
Python library (python-ldap) on awx's Python
for more info. Please read module documentation and install in the appropriate
location. Import Error: Traceback (most recent call last): File
"/tmp/awx_5739_k_o5anb8/tmpx75ji8ue", line 172, in <module> import ldap
ModuleNotFoundError: No module named 'ldap'"
but if i try to install python-ldap i get:
[root@ansible site-packages]# pip install python3-ldap
Requirement already satisfied: python3-ldap in /usr/local/lib/python3.6/site-packages (0.9.8.4)
Requirement already satisfied: pyasn1>=0.1.7 in /usr/lib/python3.6/site-packages (from python3-ldap) (0.4.7)
WARNING:
Running pip as the 'root' user can result in broken permissions and
conflicting behaviour with the system package manager. It is recommended
to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[root@ansible site-packages]# pip install python-ldap
Requirement already satisfied: python-ldap in /usr/lib64/python3.6/site-packages (3.1.0)
Requirement already satisfied: pyasn1>=0.3.7 in /usr/lib/python3.6/site-packages (from python-ldap) (0.4.7)
Requirement already satisfied: pyasn1_modules>=0.1.5 in /usr/lib/python3.6/site-packages (from python-ldap) (0.2.7)
WARNING:
Running pip as the 'root' user can result in broken permissions and
conflicting behaviour with the system package manager. It is recommended
to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Some ideas or hints to solve this? The Ansible is in a Docker on a CentOS Maschine, if its necessary. Thank you