From e368ee0fc9455d7aa23b84f7690a4d3ee4deb156 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 23 May 2022 09:49:10 +0200 Subject: [PATCH] purge: reset-failed ceph-crash This ensures we always reset-failed the ceph-crash service. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2055992 Signed-off-by: Guillaume Abrioux --- infrastructure-playbooks/purge-cluster.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 50282935b..109a25697 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -686,11 +686,10 @@ enabled: no failed_when: false - - name: systemctl reset-failed ceph-crash@{{ 'ceph-crash@' + ansible_facts['hostname'] }} # noqa 303 - command: "systemctl reset-failed ceph-crash@{{ 'ceph-crash@' + ansible_facts['hostname'] }}" + - name: systemctl reset-failed ceph-crash # noqa 303 + command: "systemctl reset-failed {{ 'ceph-crash@' + ansible_facts['hostname'] if containerized_deployment | bool else 'ceph-crash.service' }}" changed_when: false failed_when: false - when: containerized_deployment | bool - name: remove service file file: