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

11 lines
202 B
YAML
Raw Normal View History

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