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_random_choice/tasks/main.yml

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