summaryrefslogtreecommitdiffstats
path: root/playbooks/gce/openshift-cluster/tasks
diff options
context:
space:
mode:
authorBrad Durrow <brad@nolab.org>2016-08-07 11:03:02 -0600
committerGitHub <noreply@github.com>2016-08-07 11:03:02 -0600
commit61be989abced606e88390f4fdff5dfc30cd8e27e (patch)
tree3ed8eaafef9fc40be338a60ba58fdc60ac750f4b /playbooks/gce/openshift-cluster/tasks
parentd8b8474ef3f73cc7c6dd161d074ea54d94f03c00 (diff)
downloadopenshift-61be989abced606e88390f4fdff5dfc30cd8e27e.tar.gz
openshift-61be989abced606e88390f4fdff5dfc30cd8e27e.tar.bz2
openshift-61be989abced606e88390f4fdff5dfc30cd8e27e.tar.xz
openshift-61be989abced606e88390f4fdff5dfc30cd8e27e.zip
Fix GCE Launch
The Ansible GCE module (documentation here: http://docs.ansible.com/ansible/gce_module.html) requires a comma separated list when you pass an array here (even with a single element) the argument has square brackets around it and the instance doesn't get launched. Testing shows that joining with ', ' (comma space) works with one instance but breaks with two so I used ',' (comma no space).
Diffstat (limited to 'playbooks/gce/openshift-cluster/tasks')
-rw-r--r--playbooks/gce/openshift-cluster/tasks/launch_instances.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/playbooks/gce/openshift-cluster/tasks/launch_instances.yml b/playbooks/gce/openshift-cluster/tasks/launch_instances.yml
index c5c479052..60cf21a5b 100644
--- a/playbooks/gce/openshift-cluster/tasks/launch_instances.yml
+++ b/playbooks/gce/openshift-cluster/tasks/launch_instances.yml
@@ -1,7 +1,7 @@
---
- name: Launch instance(s)
gce:
- instance_names: "{{ instances }}"
+ instance_names: "{{ instances|join(',') }}"
machine_type: "{{ gce_machine_type | default(deployment_vars[deployment_type].machine_type, true) }}"
image: "{{ gce_machine_image | default(deployment_vars[deployment_type].image, true) }}"
service_account_email: "{{ lookup('env', 'gce_service_account_email_address') }}"