]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-defaults: fix handler for osd container 1784/head
authorSébastien Han <seb@redhat.com>
Tue, 22 Aug 2017 09:56:05 +0000 (11:56 +0200)
committerSébastien Han <seb@redhat.com>
Tue, 22 Aug 2017 09:56:05 +0000 (11:56 +0200)
commitabdd66619e1d5c94f74e994bff667b5ccc6b529f
treec6228b4f8cff6dd3a19946e64ccbda6776eea975
parent37ec3bc798b7b0201bd23a1f02f951fabb7a9ed6
ceph-defaults: fix handler for osd container

Problem: task "check for a ceph socket in containerized deployment" will
be skipped if we are not an OSD.

with_items are still evaluated before when conditions so if the task was
skipped the dict will be empty and then fail.
Adding a "not skipped" condition skips the execution of the task.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1482061
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-defaults/handlers/main.yml