+- name: label storage nodes # noqa 305
+ shell: "kubectl label node {{ item }} {{ rook_storage_label }}=true"
+ changed_when: true
+ with_items: "{{ rook_storage_nodes }}"
+
+- name: taint storage nodes # noqa 305
+ shell: "kubectl taint node {{ item }} {{ rook_storage_label }}=true:NoSchedule"
+ changed_when: true
+ with_items: "{{ rook_storage_nodes }}"
+
+- name: label nodes for other workloads # noqa 305
+ shell: "kubectl label node {{ item }} {{ rook_storage_label }}=false"
+ changed_when: true
+ with_items: "{{ rook_nostorage_nodes }}"
+