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.
ansible/test/integration/targets/lookup_lines/tasks/main.yml

14 lines
313 B
YAML

- 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'"