The error appears to be in '/work/armory/roles/xxx/tasks/xxx.yml': line 266, column 3, but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be: - name: Save new iptables - IPv4 ^ here The error is being reported by a role. Is the group_vars/default.yml being sourced by the role, or by the playbook that invokes the role? How are you invoking the role? Walter -- Walter Rowe, Division Chief Infrastructure Services Division Mobile: 202.355.4123 On Feb 13, 2024, at 11:35 AM, Kathy L <[email protected]> wrote: 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]<mailto:[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<https://groups.google.com/d/msgid/ansible-project/dc20f5fa-0045-4673-915f-8668c47d3acdn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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/0243362B-EF8F-487E-8516-E2EC1D1B3901%40nist.gov.
