Yes, it works like this: vars_files: - /etc/ansible/add_users/global_vars/main.yml
Thanks, Dimitar On Monday, July 20, 2015 at 6:42:00 PM UTC+3, Brian Coca wrote: > > vars: > include: /etc/ansible/add_users/global_vars/main.yml > > ^ that does not work, you want: > > vars_files: > - /etc/ansible/add_users/global_vars/main.yml > > https://docs.ansible.com/playbooks_variables.html#variable-file-separation > > include is for plays or tasks, for vars you have vars_files or as a > task include_vars. > > > > > -- > Brian Coca > -- 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/c223dd61-20d0-4149-8208-e058faef30b7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
