sudo: True
pre_tasks:
- - name: Set OSD flags
+ - name: Set the noout flag
- command: ceph osd set noout
+ command: ceph osd set {{ item }}
+ with_items:
+ - noout
+ - noscrub
+ - nodeep-scrub
- delegate_to: "{{ item }}"
- with_items: groups.mons[0]
+ delegate_to: "{{ groups.mons[0] }}"
roles:
- ceph-common
until: result.rc == 0
retries: 10
delay: 10
- delegate_to: 127.0.0.1
+ delegate_to: "{{ groups.mons[0] }}"
- - name: Unset OSD flags
+ - name: Unset the noout flag
- command: ceph osd unset noout
+ command: ceph osd unset {{ item }}
+ with_items:
+ - noout
+ - noscrub
+ - nodeep-scrub
- delegate_to: "{{ item }}"
- with_items: groups.mons[0]
+ delegate_to: "{{ groups.mons[0] }}"
- hosts: mdss