Starting to move over lookups and fixing some bugs related to that

This commit is contained in:
James Cammarata 2015-01-08 10:51:54 -06:00
commit 63c2d616e7
14 changed files with 236 additions and 61 deletions

11
v2/samples/with_items.yml Normal file
View file

@ -0,0 +1,11 @@
- hosts: localhost
connection: local
vars:
my_list:
- a
- b
- c
gather_facts: no
tasks:
- debug: msg="item is {{item}}"
with_items: my_list

View file

@ -0,0 +1,13 @@
- hosts: localhost
connection: local
gather_facts: no
vars:
users:
- foo
- bar
- bam
tasks:
- debug: msg="item.0={{ item[0] }} item.1={{ item[1] }}"
with_nested:
- users
- [ 'clientdb', 'employeedb', 'providerdb' ]