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>
pull/7190/head
Guillaume Abrioux 2022-05-23 09:49:10 +02:00
parent dee49779c9
commit 5ab46f836d
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: