On Tue, 13 Feb 2024 at 15:33, Kathy L <[email protected]> wrote:

> Default.yml is at the playbook level in a folder called group_vars.  It is
> being read in by my playbook like this:
>
> vars_files:
>   - group_vars/default.yml
>

If 'group_vars' is adjacent to your playbook, then 'group_vars/default.yml'
would also load if the host is in a group called 'default'.
So this file name/location is a bit ambiguous.
In any case I would only use the 'vars_files' statement for files that are
not automatically loaded.
So I would remove the vars_files statement from your playbook and then
rename the vars file to 'group_vars/all.yml'.
Or create a dir 'group_vars/all' and move it there:
'group_vars/all/default.yml' (or main.yml, doesn't matter)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLbUfoyXbOkWKi4nM8k1%2BhioTdUk%2BrNzRFEoskCfypxv6A%40mail.gmail.com.

Reply via email to