When I make Todd's changes, I get the same original error EXCEPT it tells 
me CentOS is not a dict, even though I am targeting a Debian box.

Dick, are you saying that the file all.yml in the group_vars folder does 
not need to be explicitly stated in my playbook?

On Tuesday, February 13, 2024 at 10:51:41 AM UTC-5 Dick Visser wrote:

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/dc20f5fa-0045-4673-915f-8668c47d3acdn%40googlegroups.com.

Reply via email to