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.

ldapserver_pvs:
    ldapbindDN: cn=serviceaccount,ou=specialAccounts,o=ldap.company.loc
    ldaphost: p-ldap.sys.company.loc
    ldapSSLport: 1234
    ldapport: 5678

ldapserver_stage:
    ldapbindDN: cn=serviceaccount,ou=specialAccounts,o=ldap.company.loc
    ldaphost: s-ldap.sys.company.loc
    ldapSSLport: 1234
    ldapport: 5678

ldapserver_prod:
    ldapbindDN: cn=serviceaccount,ou=specialAccounts,o=ldap.company.loc
    ldaphost: ldap.sys.company.loc
    ldapSSLport: 1234
    ldapport: 5678


I can't seem to find a clean way to do so, any suggestions on best 
practices to proceed?

Nick

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7109de06-55e2-4f80-9b8d-533e6c82a4bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to