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/CAJ5XC8kRExkSO4rdBZOSb3JO26dvMf69RK%3DhNkXHoz1n%3Df78uQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to