2023-09-01 15:42:19 -04:00
|
|
|
---
|
|
|
|
- name: restart zookeeper
|
|
|
|
service:
|
|
|
|
name: zookeeper
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: restart libvirtd
|
|
|
|
service:
|
|
|
|
name: libvirtd
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: restart frr
|
|
|
|
service:
|
|
|
|
name: frr
|
|
|
|
state: restarted
|
|
|
|
|
|
|
|
- name: restart patroni
|
|
|
|
service:
|
|
|
|
name: patroni
|
|
|
|
state: restarted
|
|
|
|
|
2023-09-01 15:42:20 -04:00
|
|
|
- name: restart ceph-mon
|
2023-09-01 15:42:22 -04:00
|
|
|
service:
|
|
|
|
name: ceph-mon@{{ ansible_hostname }}
|
|
|
|
state: restarted
|
2023-09-01 15:42:20 -04:00
|
|
|
|
|
|
|
- name: restart ceph-mgr
|
2023-09-01 15:42:22 -04:00
|
|
|
service:
|
|
|
|
name: ceph-mgr@{{ ansible_hostname }}
|
|
|
|
state: restarted
|
2023-09-01 15:42:20 -04:00
|
|
|
|
2023-09-01 15:42:20 -04:00
|
|
|
# Restart pvcd, but sequentially one-host-at-a-time with a 15s wait in between; this provides
|
|
|
|
# plenty of time for the primary state to switch around without putting the cluster in a
|
|
|
|
# no-primary state
|
2023-09-01 15:42:19 -04:00
|
|
|
- name: restart pvcd
|
2023-09-01 15:42:20 -04:00
|
|
|
shell: systemctl restart pvcd && sleep 15
|
2023-09-01 15:42:22 -04:00
|
|
|
ignore_errors: true
|
2023-09-01 15:42:20 -04:00
|
|
|
run_once: true
|
|
|
|
delegate_to: "{{ play_host }}"
|
|
|
|
with_items: "{{ play_hosts }}"
|
|
|
|
loop_control:
|
|
|
|
loop_var: play_host
|