configure_nodes.yml 1.1 KB

12345678910111213141516171819202122
  1. ---
  2. - name: Configure nodes
  3. hosts: "{{ l_node_group }}"
  4. vars:
  5. openshift_node_master_api_url: "{{ hostvars[groups.oo_first_master.0].openshift.master.api_url }}"
  6. openshift_node_first_master_ip: "{{ hostvars[groups.oo_first_master.0].openshift.common.ip }}"
  7. openshift_no_proxy_internal_hostnames: "{{ hostvars | lib_utils_oo_select_keys(groups['oo_nodes_to_config']
  8. | union(groups['oo_masters_to_config'])
  9. | union(groups['oo_etcd_to_config'] | default([])))
  10. | lib_utils_oo_collect('openshift.common.hostname') | default([]) | join (',')
  11. }}"
  12. roles:
  13. - role: openshift_cloud_provider
  14. when: openshift_cloudprovider_kind is defined
  15. - role: openshift_node
  16. - role: tuned
  17. - role: nickhammond.logrotate
  18. tasks:
  19. - import_role:
  20. name: openshift_storage_glusterfs
  21. tasks_from: kernel_modules.yml
  22. when: "'glusterfs' in osn_storage_plugin_deps"