main.yml 1.2 KB

12345678910111213141516171819202122232425
  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. storage_plugin_deps: "{{ osn_storage_plugin_deps | default(None) }}"
  19. set_node_ip: "{{ openshift_set_node_ip | default(None) }}"
  20. node_image: "{{ osn_image | default(None) }}"
  21. ovs_image: "{{ osn_ovs_image | default(None) }}"
  22. proxy_mode: "{{ openshift_node_proxy_mode | default('iptables') }}"
  23. local_quota_per_fsgroup: "{{ openshift_node_local_quota_per_fsgroup | default(None) }}"
  24. dns_ip: "{{ openshift_dns_ip | default(none) | node_get_dns_ip(hostvars[inventory_hostname])}}"
  25. env_vars: "{{ openshift_node_env_vars | default(None) }}"