scaleup.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. - hosts: localhost
  3. gather_facts: no
  4. connection: local
  5. become: no
  6. vars_files:
  7. - vars.yml
  8. tasks:
  9. - name: Evaluate oo_hosts_to_update
  10. add_host:
  11. name: "{{ item }}"
  12. groups: oo_hosts_to_update
  13. ansible_ssh_user: "{{ deployment_vars[deployment_type].ssh_user }}"
  14. ansible_become: "{{ deployment_vars[deployment_type].become }}"
  15. with_items: "{{ groups.nodes_to_add }}"
  16. - include: ../../common/openshift-cluster/update_repos_and_packages.yml
  17. - include: ../../common/openshift-cluster/scaleup.yml
  18. vars_files:
  19. - ../../aws/openshift-cluster/vars.yml
  20. - ../../aws/openshift-cluster/cluster_hosts.yml
  21. vars:
  22. g_new_node_hosts: "{{ groups.nodes_to_add }}"
  23. g_ssh_user: "{{ deployment_vars[deployment_type].ssh_user }}"
  24. g_sudo: "{{ deployment_vars[deployment_type].become }}"
  25. g_nodeonmaster: true
  26. openshift_cluster_id: "{{ cluster_id }}"
  27. openshift_debug_level: "{{ debug_level }}"
  28. openshift_deployment_type: "{{ deployment_type }}"
  29. openshift_public_hostname: "{{ ec2_ip_address }}"