purge-container: fix wrong syntax

we want a default value for `mon_group_name`, not for
`groups[mon_group_name]`.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/3442/head
Guillaume Abrioux 2018-12-12 09:53:32 +01:00 committed by Sébastien Han
parent 0eb56e36f8
commit d0b3cb7f85
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@
setup:
delegate_to: "{{ item }}"
delegate_facts: True
with_items: "{{ groups[mon_group_name] | default('mons') }}"
with_items: "{{ groups.get(mon_group_name, 'mons') }}"
tasks: