]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge: reset-failed ceph-crash
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 23 May 2022 07:49:10 +0000 (09:49 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 22 Jun 2022 05:17:32 +0000 (07:17 +0200)
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 5ab46f836dd0903b6e009178c3ef950d7524bf32)

infrastructure-playbooks/purge-cluster.yml

index d3a7abddee242e9c3ea088fabbfb41abf15500b4..92cf99b7010617ab71e89d0fd77148fe42ef19d9 100644 (file)
         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: