]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
mon: fix with_items being evaluated before when 1567/head
authorSébastien Han <seb@redhat.com>
Tue, 11 Apr 2017 10:10:55 +0000 (12:10 +0200)
committerSébastien Han <seb@redhat.com>
Wed, 24 May 2017 14:31:33 +0000 (16:31 +0200)
commit4bd9bea4b5599c564ce78820fc7b235c59412217
treea8b9720988ad3f9d7c6b8ad9ad795a1a81ef582e
parentb18bc1528238794f86bbf0a98346c0a2b8a34887
mon: fix with_items being evaluated before when

Ansible evaluates the 'with_items' before the 'when' so if the inventory
does not have the group declared it'll fail. To fix this, we set an
empty array to make the with_items happy and then evaluate with the
'when'.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 05331a26348e162e4083131d2a259f6c983f3ec9)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-mon/tasks/docker/fetch_configs.yml