I want to separate vars in a role structure from *vars/main.yml* into different files using *vars_files* or *include_vars* as per Variable File Separation <http://docs.ansible.com/ansible/latest/playbooks_variables.html#variable-file-separation>, with something like
--- - vars_files: external_vars.yml but I get this message ERROR! The vars/main.yml file for role 'foo' must contain a dictionary of variables If I omit the dash for the list it still doesn't work and get another message, which I haven't saved for this post. I use ansible 2.3.2.0. Shouldn't either work in such a case? Is there any other way to accomplish this? -- 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/b688c5cf-278e-46fa-8744-55b2fe082ff2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
