main.yml 1.4 KB

12345678910111213141516171819202122232425262728
  1. ---
  2. - name: Set node facts
  3. openshift_facts:
  4. role: "{{ item.role }}"
  5. local_facts: "{{ item.local_facts }}"
  6. with_items:
  7. # Reset node labels to an empty dictionary.
  8. - role: node
  9. local_facts:
  10. labels: {}
  11. - role: node
  12. local_facts:
  13. annotations: "{{ openshift_node_annotations | default(none) }}"
  14. debug_level: "{{ openshift_node_debug_level | default(openshift.common.debug_level) }}"
  15. iptables_sync_period: "{{ openshift_node_iptables_sync_period | default(None) }}"
  16. kubelet_args: "{{ openshift_node_kubelet_args | default(None) }}"
  17. labels: "{{ openshift_node_labels | default(None) }}"
  18. registry_url: "{{ oreg_url_node | default(oreg_url) | default(None) }}"
  19. schedulable: "{{ openshift_schedulable | default(openshift_scheduleable) | default(None) }}"
  20. sdn_mtu: "{{ openshift_node_sdn_mtu | default(None) }}"
  21. storage_plugin_deps: "{{ osn_storage_plugin_deps | default(None) }}"
  22. set_node_ip: "{{ openshift_set_node_ip | default(None) }}"
  23. node_image: "{{ osn_image | default(None) }}"
  24. ovs_image: "{{ osn_ovs_image | default(None) }}"
  25. proxy_mode: "{{ openshift_node_proxy_mode | default('iptables') }}"
  26. local_quota_per_fsgroup: "{{ openshift_node_local_quota_per_fsgroup | default(None) }}"
  27. dns_ip: "{{ openshift_dns_ip | default(none) | node_get_dns_ip(hostvars[inventory_hostname])}}"
  28. env_vars: "{{ openshift_node_env_vars | default(None) }}"