Commit 27efcbc0 authored by Dimitri Savineau's avatar Dimitri Savineau Committed by Guillaume Abrioux
Browse files

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: default avatarDimitri Savineau <dsavinea@redhat.com>
parent fd364338
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment