diff --git a/roles/ldap_server/molecule/default/tests/test_client.py b/roles/ldap_server/molecule/default/tests/test_client.py index 6216013577789e1275c828e86e3faa2844c5826c..2523eb8801db58ce3e396c5d80780f962428e4a5 100644 --- a/roles/ldap_server/molecule/default/tests/test_client.py +++ b/roles/ldap_server/molecule/default/tests/test_client.py @@ -1,7 +1,10 @@ +import os + import testinfra.utils.ansible_runner + testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( - '.molecule/ansible_inventory.yml').get_hosts('client') + os.environ['MOLECULE_INVENTORY_FILE']).get_hosts(['client']) def test_connectivity(host):