mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
313 B
YAML
14 lines
313 B
YAML
5 years ago
|
- name: test with_lines
|
||
|
#shell: echo "{{ item }}"
|
||
|
set_fact: "{{ item }}=set"
|
||
|
with_lines: for i in $(seq 1 5); do echo "l$i" ; done;
|
||
|
|
||
|
- name: verify with_lines results
|
||
|
assert:
|
||
|
that:
|
||
|
- "l1 == 'set'"
|
||
|
- "l2 == 'set'"
|
||
|
- "l3 == 'set'"
|
||
|
- "l4 == 'set'"
|
||
|
- "l5 == 'set'"
|