From: Guillaume Abrioux Date: Mon, 23 May 2022 07:49:10 +0000 (+0200) Subject: purge: reset-failed ceph-crash X-Git-Tag: v6.0.28~32 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=941102d4e643bdcc5531bbe462e88558fb37206b;p=ceph-ansible.git 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) --- 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: