From 4dd57379bb2ecb38d50e3c679a93271f8e57d551 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 (cherry picked from commit 5ab46f836dd0903b6e009178c3ef950d7524bf32) --- 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 d3a7abdde..92cf99b70 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: