]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
purge: allow purge to run multiple times
authorSébastien Han <seb@redhat.com>
Fri, 27 Jan 2017 10:21:04 +0000 (11:21 +0100)
committerSébastien Han <seb@redhat.com>
Mon, 30 Jan 2017 13:31:56 +0000 (14:31 +0100)
commit0e2e270ab238f63285422fed90fc773d9e4ae0be
tree689589964342e2f8c61794fb588231f3080b652c
parent6f53774ee9800bc8755ad90ff85f66420e414581
purge: allow purge to run multiple times

with_items is evaluated before the when so in a second run where the
variable is empty if will fail with "'dict object' has no attribute
'stdout_lines'". To fix this we had a default array so with_items does
not fail and the task is skipped with the when.

Signed-off-by: Sébastien Han <seb@redhat.com>
infrastructure-playbooks/purge-cluster.yml