From: Dimitri Savineau Date: Thu, 9 Jul 2020 15:23:33 +0000 (-0400) Subject: cephadm-adopt: don't fail on systemd reset-failed X-Git-Tag: v6.0.0alpha2~130 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=27efcbc0e5d216a3a211b930497769ec06526369;p=ceph-ansible.git cephadm-adopt: don't fail on systemd reset-failed If the systemd service exists successfully then we don't need to reset the failed state. Signed-off-by: Dimitri Savineau --- diff --git a/infrastructure-playbooks/cephadm-adopt.yml b/infrastructure-playbooks/cephadm-adopt.yml index 983e5a94c..98a1867af 100644 --- a/infrastructure-playbooks/cephadm-adopt.yml +++ b/infrastructure-playbooks/cephadm-adopt.yml @@ -301,6 +301,7 @@ - name: reset failed ceph-mon systemd unit command: 'systemctl reset-failed ceph-mon@{{ ansible_hostname }}' changed_when: false + failed_when: false when: containerized_deployment | bool - name: remove ceph-mon systemd unit file @@ -334,6 +335,7 @@ - name: reset failed ceph-mgr systemd unit command: 'systemctl reset-failed ceph-mgr@{{ ansible_hostname }}' changed_when: false + failed_when: false when: containerized_deployment | bool - name: remove ceph-mgr systemd unit file @@ -454,6 +456,7 @@ - name: reset failed ceph-mds systemd unit command: 'systemctl reset-failed ceph-mds@{{ ansible_hostname }}' changed_when: false + failed_when: false when: containerized_deployment | bool - name: remove ceph-mds systemd unit file @@ -550,6 +553,7 @@ - name: reset failed ceph-radosgw systemd unit command: 'systemctl reset-failed ceph-radosgw@rgw.{{ ansible_hostname }}.{{ item.instance_name }}' changed_when: false + failed_when: false loop: '{{ rgw_instances }}' when: containerized_deployment | bool @@ -616,6 +620,7 @@ - name: reset failed rbd-mirror systemd unit command: 'systemctl reset-failed ceph-rbd-mirror@rbd-mirror.{{ ansible_hostname }}' changed_when: false + failed_when: false when: containerized_deployment | bool - name: remove rbd-mirror systemd unit file