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 define which variable to loop over. When I run into this problem I have to go back to the drawing board because I cannot find a way to do the following: vars_prompt: - name: env prompt: "Environment" include_vars: file: "{{env}}.yml" - debug: msg: "{{env}}.accesspolicies" Is there a way to do this better? -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d74d1db5-c12d-4b2b-86e4-55c4abf372bc%40googlegroups.com.