Starting to test my roles with ansible 2.0 dev branch
Complex args breaks when using with_ but works with 1.9.X
- name : Loop
hosts : all
gather_facts : yes
become : True
vars :
usermanage_groupsdb :
- name : "group1"
state : "present"
gid : "5000"
system : "true"
- name : "group2"
state : "present"
gid : "5001"
system : "false"
tasks:
- debug: var=usermanage_groupsdb
- name: groups | Create groups
group:
args: "{{ item }}"
with_items: usermanage_groupsdb
I am not sure if thats a bug or its by design. Since the complex args was not heavily documented.
So I dont want to report it on github unless it is
Regards
Adham