From a43a8721050aa858fec30da7ab8845e2ae845659 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 2 Dec 2019 09:47:21 +0100 Subject: [PATCH] docker2podman: import ceph-handler role 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 --- infrastructure-playbooks/docker-to-podman.yml | 2 ++ roles/ceph-handler/handlers/main.yml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/infrastructure-playbooks/docker-to-podman.yml b/infrastructure-playbooks/docker-to-podman.yml index 65f4668c1..6b1a8baf9 100644 --- a/infrastructure-playbooks/docker-to-podman.yml +++ b/infrastructure-playbooks/docker-to-podman.yml @@ -58,6 +58,8 @@ name: ceph-defaults - import_role: name: ceph-facts + - import_role: + name: ceph-handler - name: get docker version command: docker --version diff --git a/roles/ceph-handler/handlers/main.yml b/roles/ceph-handler/handlers/main.yml index 65b0ba994..a6f33e24b 100644 --- a/roles/ceph-handler/handlers/main.yml +++ b/roles/ceph-handler/handlers/main.yml @@ -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: