config.yml 798 B

12345678910111213141516171819202122232425
  1. ---
  2. - name: Populate oo_nodes_to_config and oo_first_master host groups
  3. hosts: localhost
  4. gather_facts: no
  5. tasks:
  6. - name: Evaluate oo_nodes_to_config
  7. add_host:
  8. name: "{{ item }}"
  9. groups: oo_nodes_to_config
  10. ansible_ssh_user: root
  11. with_items: oo_host_group_exp | default([])
  12. - name: Evaluate oo_first_master
  13. add_host:
  14. name: "{{ groups['tag_env-host-type-' ~ cluster_id ~ '-openshift-master'][0] }}"
  15. groups: oo_first_master
  16. ansible_ssh_user: root
  17. - include: ../../common/openshift-node/config.yml
  18. vars:
  19. openshift_cluster_id: "{{ cluster_id }}"
  20. openshift_debug_level: 4
  21. openshift_deployment_type: "{{ deployment_type }}"
  22. openshift_first_master: "{{ groups.oo_first_master.0 }}"
  23. openshift_hostname: "{{ gce_private_ip }}"