mirror of https://github.com/ceph/ceph-ansible.git
rolling_update: fix rbd-mirror play
There's no service to stop/mask when the node being upgraded is a 'primary node' only (1 way replication). Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/7284/head
parent
50b7a12ad8
commit
82e0ae7e75
|
@ -851,12 +851,18 @@
|
||||||
become: True
|
become: True
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: check for ceph rbd mirror services
|
||||||
|
command: systemctl show --no-pager --property=Id --state=enabled ceph-rbd-mirror@* # noqa 303
|
||||||
|
changed_when: false
|
||||||
|
register: rbdmirror_services
|
||||||
|
|
||||||
- name: stop ceph rbd mirror
|
- name: stop ceph rbd mirror
|
||||||
systemd:
|
service:
|
||||||
name: "ceph-rbd-mirror@rbd-mirror.{{ ansible_facts['hostname'] }}"
|
name: "{{ item.split('=')[1] }}"
|
||||||
state: stopped
|
state: stopped
|
||||||
enabled: no
|
enabled: no
|
||||||
masked: yes
|
masked: yes
|
||||||
|
loop: "{{ rbdmirror_services.stdout_lines }}"
|
||||||
|
|
||||||
- import_role:
|
- import_role:
|
||||||
name: ceph-defaults
|
name: ceph-defaults
|
||||||
|
|
Loading…
Reference in New Issue