]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
mon: fix with_items being evaluated before when 1428/head
authorSébastien Han <seb@redhat.com>
Tue, 11 Apr 2017 10:10:55 +0000 (12:10 +0200)
committerSébastien Han <seb@redhat.com>
Tue, 11 Apr 2017 10:10:55 +0000 (12:10 +0200)
commit05331a26348e162e4083131d2a259f6c983f3ec9
treecc4cc64068fd52e64aa5989f0e1463c0f66a5e5a
parent186a392656ac1c9443d41c40252797f5a51ccbdb
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>
roles/ceph-mon/tasks/docker/fetch_configs.yml