I have a playbook (ldapconfig.yml) with a variables file (ldapconfig_vars.yml), and am hoping to use an inventory var to specify which dictionary of the below to call.
So, if env=PVS, it calls the ldapserver_pvs dictionary, if env=PROD, it calls the ldapserver_prod dict, and so on.
ldapbindDN: cn=serviceaccount,ou=specialAccounts,o=ldap.company.loc
ldaphost: p-ldap.sys.company.loc
ldapbindDN: cn=serviceaccount,ou=specialAccounts,o=ldap.company.loc
ldaphost: s-ldap.sys.company.loc
ldapbindDN: cn=serviceaccount,ou=specialAccounts,o=ldap.company.loc
ldaphost: ldap.sys.company.loc
I can't seem to find a clean way to do so, any suggestions on best practices to proceed?
Nick