diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 03e51f41c..0683a4bac 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -326,6 +326,19 @@ - containerized_deployment +- name: set osd flags + hosts: "{{ mon_group_name | default('mons') }}[0]" + become: True + roles: + - ceph-defaults + - ceph-facts + post_tasks: + - name: set osd flags + command: "{{ docker_exec_cmd | default('') }} ceph --cluster {{ cluster }} osd set {{ item }}" + with_items: + - noout + - nodeep-scrub + - name: upgrade ceph osds cluster vars: @@ -419,7 +432,7 @@ - name: unset osd flags hosts: - - "{{ mon_group_name|default('mons') }}" + - "{{ mon_group_name | default('mons') }}[0]" become: True @@ -435,11 +448,10 @@ - containerized_deployment - name: unset osd flags - command: "{{ docker_exec_cmd_update_osd|default('') }} ceph osd unset {{ item }} --cluster {{ cluster }}" + command: "{{ docker_exec_cmd_update_osd | default('') }} ceph osd unset {{ item }} --cluster {{ cluster }}" with_items: - noout - - norebalance - delegate_to: "{{ groups[mon_group_name][0] }}" + - nodeep-scrub - name: get osd versions command: "{{ docker_exec_cmd_update_osd|default('') }} ceph --cluster {{ cluster }} versions"