I was testing out an installation using ansible to deploy ldap and IdP on a new vm.
I specified the remote host to be installed in this file
root@ansible:/etc/ansible# less host_vars/
idp.eko-konnect.net.ng
Then executed the command below and got an error
root@ansible:/etc/ansible# ansible-playbook -i inventories/inventory.eko-konnect.net.ng idp-ldap.yml
PLAY [Configure the LDAP machine] *********************************************
GATHERING FACTS ***************************************************************
ok: [ldap.eko-konnect.net.ng]
TASK: [fmarco76.firewall | Retrieve iptables rules] ***************************
ok: [ldap.eko-konnect.net.ng]
TASK: [fmarco76.firewall | Count iptables rules] ******************************
ok: [ldap.eko-konnect.net.ng]
TASK: [fmarco76.firewall | Apply rules for the local network] *****************
skipping: [ldap.eko-konnect.net.ng] => (item=389)
skipping: [ldap.eko-konnect.net.ng] => (item=636)
TASK: [fmarco76.firewall | Apply rules for the defined network] ***************
skipping: [ldap.eko-konnect.net.ng] => (item=389)
skipping: [ldap.eko-konnect.net.ng] => (item=636)
TASK: [fmarco76.firewall | Apply nat rules] ***********************************
skipping: [ldap.eko-konnect.net.ng] => (item=389)
skipping: [ldap.eko-konnect.net.ng] => (item=636)
TASK: [fmarco76.firewall | Save iptable rules] ********************************
skipping: [ldap.eko-konnect.net.ng]
TASK: [fmarco76.firewall | Save iptable rules] ********************************
skipping: [ldap.eko-konnect.net.ng]
TASK: [ldap | Install the openldap and required Packages for RedHat] **********
ok: [ldap.eko-konnect.net.ng] => (item=openldap,openldap-servers,openldap-clients)
TASK: [ldap | Install the openldap and required Packages for Debian] **********
skipping: [ldap.eko-konnect.net.ng]
TASK: [ldap | Start ldap server] **********************************************
ok: [ldap.eko-konnect.net.ng]
TASK: [ldap | Retrieve ldap server configuration] *****************************
ok: [ldap.eko-konnect.net.ng]
TASK: [ldap | Copy modules file LDIF] *****************************************
skipping: [ldap.eko-konnect.net.ng]
TASK: [ldap | Add modules (Debian)] *******************************************
skipping: [ldap.eko-konnect.net.ng]
TASK: [ldap | Add modules (RedHat)] *******************************************
skipping: [ldap.eko-konnect.net.ng]
TASK: [ldap | Restart ldap server] ********************************************
skipping: [ldap.eko-konnect.net.ng]
TASK: [ldap | Create db LDIF] *************************************************
failed: [ldap.eko-konnect.net.ng] => {"failed": true}
msg: Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/root/idp-ldap.retry
ldap.eko-konnect.net.ng : ok=9 changed=0 unreachable=0 failed=1