]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
docker2podman: import ceph-handler role
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 2 Dec 2019 08:47:21 +0000 (09:47 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 3 Dec 2019 09:44:48 +0000 (10:44 +0100)
This is needed to avoid following error:

```
ERROR! The requested handler 'restart ceph mons' was not found in either the main handlers list nor in the listening handlers list
```

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1777829
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit a43a8721050aa858fec30da7ab8845e2ae845659)

infrastructure-playbooks/docker-to-podman.yml
roles/ceph-handler/handlers/main.yml

index 65f4668c191a29bad5b73035a187472ca2588e63..6b1a8baf9cd704490874ff8e6077b74d298a234d 100644 (file)
@@ -58,6 +58,8 @@
         name: ceph-defaults
     - import_role:
         name: ceph-facts
+    - import_role:
+        name: ceph-handler
 
     - name: get docker version
       command: docker --version
index 65b0ba9947591d20df4566c9edeae97a3f6090ad..a6f33e24bfe1864b001cfe66d7ad70e01f42ae45 100644 (file)
@@ -1,6 +1,8 @@
 ---
 - name: handlers
-  when: not rolling_update | bool
+  when:
+     - not rolling_update | bool
+     - not docker2podman | default(False) | bool
   block:
     - name: update apt cache
       apt: