- name: Wait for Node Registration
  command: >
      {{ openshift.common.client_binary }} get node {{ item | lower }}
  register: omd_get_node
  until: omd_get_node.rc == 0
  retries: 20
  delay: 5
  changed_when: false
  with_items: openshift_nodes

- name: Set node schedulability
  command: >
    {{ openshift.common.admin_binary }} manage-node {{ item.openshift.common.hostname | lower }} --schedulable={{ 'true' if item.openshift.node.schedulable | bool else 'false' }}
  with_items:
    -  "{{ openshift_node_vars }}"

- name: Label nodes
  command: >
    {{ openshift.common.client_binary }} label --overwrite node {{ item.openshift.common.hostname | lower }} {{ item.openshift.node.labels | oo_combine_dict  }}
  with_items:
    -  "{{ openshift_node_vars }}"
  when: "'labels' in item.openshift.node and item.openshift.node.labels != {}"

- name: Wait for Node Registration
  command: >
      {{ openshift.common.client_binary }} get node {{ item | lower }}
  register: omd_get_node
  until: omd_get_node.rc == 0
  retries: 20
  delay: 30
  changed_when: false
  with_items: openshift_nodes

- name: Set node schedulability
  command: >
    {{ openshift.common.admin_binary }} manage-node {{ item.openshift.common.hostname | lower }} --schedulable={{ 'true' if item.openshift.node.schedulable | bool else 'false' }}
  with_items:
    -  "{{ openshift_node_vars }}"

- name: Label nodes
  command: >
    {{ openshift.common.client_binary }} label --overwrite node {{ item.openshift.common.hostname | lower }} {{ item.openshift.node.labels | oo_combine_dict  }}
  with_items:
    -  "{{ openshift_node_vars }}"
  when: "'labels' in item.openshift.node and item.openshift.node.labels != {}"

Increase timeout on Wait for Node Registration
Increase timeout on Wait for Node Registration
