main.yml 1.2 KB

1234567891011121314151617181920212223242526
  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. iptables_sync_period: "{{ openshift_node_iptables_sync_period | default(None) }}"
  15. kubelet_args: "{{ openshift_node_kubelet_args | default(None) }}"
  16. labels: "{{ openshift_node_labels | default(None) }}"
  17. registry_url: "{{ oreg_url_node | default(oreg_url) | default(None) }}"
  18. sdn_mtu: "{{ openshift_node_sdn_mtu | default(None) }}"
  19. storage_plugin_deps: "{{ osn_storage_plugin_deps | default(None) }}"
  20. set_node_ip: "{{ openshift_set_node_ip | default(None) }}"
  21. node_image: "{{ osn_image | default(None) }}"
  22. ovs_image: "{{ osn_ovs_image | default(None) }}"
  23. proxy_mode: "{{ openshift_node_proxy_mode | default('iptables') }}"
  24. local_quota_per_fsgroup: "{{ openshift_node_local_quota_per_fsgroup | default(None) }}"
  25. dns_ip: "{{ openshift_dns_ip | default(none) | node_get_dns_ip(hostvars[inventory_hostname])}}"
  26. env_vars: "{{ openshift_node_env_vars | default(None) }}"