Hello gianluca,
I reported this issue a long time ago (march of 19) in an unofficial rpm awx project
All related RHV/ovirt stuff (not only dynamic inventory, but all ovirt* ansible module) fail because of the version of pycurl (worked before 7.19)
What you need to do is create a py2.x venv then recompile latest pycurl with nss support like this:
- # /opt/rh/rh-python36/root/usr/bin/awx-create-venv (-e /var/lib/awx/venv/) -n ovirt
- source /var/lib/awx/venv/ovirt/bin/activate
- # (ovirt) export PYCURL_SSL_LIBRARY=nss; pip install pycurl --compile --no-cache-dir
- choose this venv instead of the regular in your inventory page and you'll be able to sync
PS: Something else that may help, try to hack the ovirt4.py with ansible_host if you want to call the hosts into playbook by the hostname and not the first IP:
vi /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/awx/plugins/inventory/ovirt4.py
## ajout NBT pour obtenir le nom de l'hote a la place de l ip'affinity_groups': [