Several things look wrong, first, your indentation is off, with_items
is a 'task keyword' but you indented it as part of the module's
options:
- name: adding groups
include_vars:
file: our_groups.yml
group:
name: "{{ item.name }}"
state: present
gid: "{{ item.gid }}"
with_items: "{{ our_groups }}"
The second thing is that you seem to have 2 actions in the same action
... you need each action separate:
- name: adding groups
include_vars:
file: our_groups.yml
- group:
name: "{{ item.name }}"
state: present
gid: "{{ item.gid }}"
with_items: "{{ our_groups }}"
--
----------
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/CACVha7e60tr%2BFna%3DsJswA%2BoX-EJCgUqHJeV%2B%3D7ir6hFseXFB3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.