[ansible-project] Using a variable inside reference

2020-03-17 Thread Jason Bullen
I have 2 var files with a top level of dev and prod. All sublevels are the same. For example: dev: accesspolicies: - policy1 - policy 2 and prod: accesspolicies: - policy1 There is a problem that i keep running into where my design requires a var_prompt input to be used to

[ansible-project] help with variable lookup

2020-02-06 Thread Jason Bullen
I'm a greenhorn...I have this problem where I want the user to input either dev or prod in an env prompt then I take that and access a dictionary to get its custom properties. it works fine if I hardcode {{ dev.ip }} but if I do a lookup it says variable dev.ip not found. Also, let me know if