label_nodes.yml 264 B

12345678
  1. ---
  2. - name: Label GlusterFS nodes
  3. oc_label:
  4. name: "{{ hostvars[item].openshift.node.nodename }}"
  5. kind: node
  6. state: add
  7. labels: "{{ glusterfs_nodeselector | lib_utils_oo_dict_to_list_of_dict }}"
  8. with_items: "{{ glusterfs_nodes | default([]) }}"