Skip to content

Commit 3794c15

Browse files
committed
Fix multiple ansible runs on the initial stack-create
because [new_nodes] section was not added on the first ansible run, then [new_nodes] section was added for the second node which caused running scaleup playbook.
1 parent 2724fc4 commit 3794c15

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

templates/var/lib/ansible/inventory

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ bastion
66
masters
77
nodes
88
etcd
9-
{{^ansible_first_run}}
109
new_nodes
11-
{{/ansible_first_run}}
1210
{{#dedicated_lb}}
1311
lb
1412

@@ -47,8 +45,8 @@ localhost
4745
{{.}} openshift_node_labels="{'region': 'primary', 'zone': 'default'}"
4846
{{/nodes}}
4947

50-
{{^ansible_first_run}}
5148
[new_nodes]
49+
{{^ansible_first_run}}
5250
{{#new_nodes}}
5351
{{.}} openshift_node_labels="{'region': 'primary', 'zone': 'default'}"
5452
{{/new_nodes}}

0 commit comments

Comments
 (0)