setup_scale_group_facts.yml 636 B

12345678910111213141516171819202122232425
  1. ---
  2. - name: Add bootstrap instances
  3. add_host:
  4. name: "{{ hostvars[item].gce_name }}"
  5. groups:
  6. - bootstrap
  7. - nodes
  8. openshift_ignition_file_path: "{{ openshift_bootstrap_ignition_file }}"
  9. with_items: "{{ groups['tag_ocp-bootstrap'] | default([]) }}"
  10. - name: Add master instances
  11. add_host:
  12. name: "{{ hostvars[item].gce_name }}"
  13. groups:
  14. - masters
  15. - nodes
  16. with_items: "{{ groups['tag_ocp-master'] | default([]) }}"
  17. - name: Add worker instances
  18. add_host:
  19. name: "{{ hostvars[item].gce_name }}"
  20. groups:
  21. - workers
  22. - nodes
  23. with_items: "{{ groups['tag_ocp-worker'] | default([]) }}"