ansible/test/integration/targets/lookup_random_choice/tasks/main.yml

10 lines
202 B
YAML

- name: test with_random_choice
set_fact: "random={{ item }}"
with_random_choice:
- "foo"
- "bar"
- name: verify with_random_choice
assert:
that:
- "random in ['foo', 'bar']"