mirror of https://github.com/ceph/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 <dsavinea@redhat.com>pull/5540/head
parent
fd36433826
commit
27efcbc0e5
|
@ -301,6 +301,7 @@
|
||||||
- name: reset failed ceph-mon systemd unit
|
- name: reset failed ceph-mon systemd unit
|
||||||
command: 'systemctl reset-failed ceph-mon@{{ ansible_hostname }}'
|
command: 'systemctl reset-failed ceph-mon@{{ ansible_hostname }}'
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
failed_when: false
|
||||||
when: containerized_deployment | bool
|
when: containerized_deployment | bool
|
||||||
|
|
||||||
- name: remove ceph-mon systemd unit file
|
- name: remove ceph-mon systemd unit file
|
||||||
|
@ -334,6 +335,7 @@
|
||||||
- name: reset failed ceph-mgr systemd unit
|
- name: reset failed ceph-mgr systemd unit
|
||||||
command: 'systemctl reset-failed ceph-mgr@{{ ansible_hostname }}'
|
command: 'systemctl reset-failed ceph-mgr@{{ ansible_hostname }}'
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
failed_when: false
|
||||||
when: containerized_deployment | bool
|
when: containerized_deployment | bool
|
||||||
|
|
||||||
- name: remove ceph-mgr systemd unit file
|
- name: remove ceph-mgr systemd unit file
|
||||||
|
@ -454,6 +456,7 @@
|
||||||
- name: reset failed ceph-mds systemd unit
|
- name: reset failed ceph-mds systemd unit
|
||||||
command: 'systemctl reset-failed ceph-mds@{{ ansible_hostname }}'
|
command: 'systemctl reset-failed ceph-mds@{{ ansible_hostname }}'
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
failed_when: false
|
||||||
when: containerized_deployment | bool
|
when: containerized_deployment | bool
|
||||||
|
|
||||||
- name: remove ceph-mds systemd unit file
|
- name: remove ceph-mds systemd unit file
|
||||||
|
@ -550,6 +553,7 @@
|
||||||
- name: reset failed ceph-radosgw systemd unit
|
- name: reset failed ceph-radosgw systemd unit
|
||||||
command: 'systemctl reset-failed ceph-radosgw@rgw.{{ ansible_hostname }}.{{ item.instance_name }}'
|
command: 'systemctl reset-failed ceph-radosgw@rgw.{{ ansible_hostname }}.{{ item.instance_name }}'
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
failed_when: false
|
||||||
loop: '{{ rgw_instances }}'
|
loop: '{{ rgw_instances }}'
|
||||||
when: containerized_deployment | bool
|
when: containerized_deployment | bool
|
||||||
|
|
||||||
|
@ -616,6 +620,7 @@
|
||||||
- name: reset failed rbd-mirror systemd unit
|
- name: reset failed rbd-mirror systemd unit
|
||||||
command: 'systemctl reset-failed ceph-rbd-mirror@rbd-mirror.{{ ansible_hostname }}'
|
command: 'systemctl reset-failed ceph-rbd-mirror@rbd-mirror.{{ ansible_hostname }}'
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
failed_when: false
|
||||||
when: containerized_deployment | bool
|
when: containerized_deployment | bool
|
||||||
|
|
||||||
- name: remove rbd-mirror systemd unit file
|
- name: remove rbd-mirror systemd unit file
|
||||||
|
|
Loading…
Reference in New Issue