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.
15 lines
310 B
YAML
15 lines
310 B
YAML
5 years ago
|
- name: test with_together
|
||
|
#shell: echo {{ item }}
|
||
|
set_fact: "{{ item.0 }}={{ item.1 }}"
|
||
|
with_together:
|
||
|
- [ 'a', 'b', 'c', 'd' ]
|
||
|
- [ '1', '2', '3', '4' ]
|
||
|
|
||
|
- name: verify with_together results
|
||
|
assert:
|
||
|
that:
|
||
|
- "a == '1'"
|
||
|
- "b == '2'"
|
||
|
- "c == '3'"
|
||
|
- "d == '4'"
|