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 <gabrioux@redhat.com>
(cherry picked from commit e368ee0fc9)
pull/7307/head v4.0.70.6
Guillaume Abrioux 2022-05-23 09:49:10 +02:00
parent 6485e1a69e
commit 28063d1d69
1 changed files with 2 additions and 3 deletions

View File

@ -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: