]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge-container: fix wrong syntax
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 12 Dec 2018 08:53:32 +0000 (09:53 +0100)
committerSébastien Han <seb@redhat.com>
Wed, 12 Dec 2018 10:33:57 +0000 (11:33 +0100)
we want a default value for `mon_group_name`, not for
`groups[mon_group_name]`.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/purge-docker-cluster.yml

index 6b0969056eccf89b6da419b179ee39d0c4e917cb..ff12e27654239539fd2f808944129600694b84b3 100644 (file)
     setup:
     delegate_to: "{{ item }}"
     delegate_facts: True
-    with_items: "{{ groups[mon_group_name] | default('mons') }}"
+    with_items: "{{ groups.get(mon_group_name, 'mons') }}"
 
   tasks: