mirror of https://github.com/ceph/ceph-ansible.git
cleanup delegate statement for rolling update
parent
44b37469d2
commit
4ce15f70df
|
@ -59,7 +59,7 @@
|
||||||
until: result.rc == 0
|
until: result.rc == 0
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
delegate_to: 127.0.0.1
|
delegate_to: "{{ groups.mons[0] }}"
|
||||||
|
|
||||||
|
|
||||||
- hosts: osds
|
- hosts: osds
|
||||||
|
@ -69,8 +69,7 @@
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Set the noout flag
|
- name: Set the noout flag
|
||||||
command: ceph osd set noout
|
command: ceph osd set noout
|
||||||
delegate_to: "{{ item }}"
|
delegate_to: "{{ groups.mons[0] }}"
|
||||||
with_items: groups.mons[0]
|
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- ceph-common
|
- ceph-common
|
||||||
|
@ -107,12 +106,11 @@
|
||||||
until: result.rc == 0
|
until: result.rc == 0
|
||||||
retries: 10
|
retries: 10
|
||||||
delay: 10
|
delay: 10
|
||||||
delegate_to: 127.0.0.1
|
delegate_to: "{{ groups.mons[0] }}"
|
||||||
|
|
||||||
- name: Unset the noout flag
|
- name: Unset the noout flag
|
||||||
command: ceph osd unset noout
|
command: ceph osd unset noout
|
||||||
delegate_to: "{{ item }}"
|
delegate_to: "{{ groups.mons[0] }}"
|
||||||
with_items: groups.mons[0]
|
|
||||||
|
|
||||||
|
|
||||||
- hosts: mdss
|
- hosts: mdss
|
||||||
|
|
Loading…
Reference in New Issue