launch.yml 853 B

12345678910111213141516171819202122232425262728293031
  1. # This playbook launches a new cluster or converges it if already launched
  2. ---
  3. - import_playbook: build_image.yml
  4. when: openshift_gcp_build_image | default(False) | bool
  5. - import_playbook: provision.yml
  6. - hosts: localhost
  7. tasks:
  8. - meta: refresh_inventory
  9. - import_playbook: install.yml
  10. # Inventory refresh required to remove deleted bootstrap node
  11. - hosts: localhost
  12. tasks:
  13. - meta: refresh_inventory
  14. # Re-scan GCP machines
  15. - hosts: localhost
  16. connection: local
  17. tasks:
  18. - name: place all scale groups into Ansible groups
  19. include_role:
  20. name: openshift_gcp
  21. tasks_from: setup_scale_group_facts.yml
  22. - name: run worker scaleup
  23. import_playbook: ../../playbooks/openshift-node/scaleup.yml
  24. vars:
  25. openshift_api_host: "api.{{ openshift_install_config['metadata']['name'] }}.{{ openshift_install_config['baseDomain'] }}"