summaryrefslogtreecommitdiffstats
path: root/roles/openshift_aws/tasks/upgrade_node_group.yml
blob: 4f4730dd6b4f5b76a297c0e5571289bea7236622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
- include_tasks: provision_nodes.yml
  vars:
    openshift_aws_node_group_upgrade: True
  when:
  - openshift_aws_upgrade_provision_nodes | default(True)

- debug: var=openshift_aws_current_asgs
- debug: var=openshift_aws_created_asgs

- name: fail if asg variables aren't set
  fail:
    msg: "Please ensure that openshift_aws_created_asgs and openshift_aws_current_asgs are defined."
  when:
  - openshift_aws_created_asgs == []
  - openshift_aws_current_asgs == []

- include_tasks: accept_nodes.yml
  when: openshift_aws_upgrade_accept_nodes | default(True)

- include_tasks: setup_scale_group_facts.yml

- include_tasks: setup_master_group.yml
  vars:
    # we do not set etcd here as its limited to 1 or 3
    openshift_aws_masters_groups: masters,nodes