diff options
author | Andrew Butcher <abutcher@redhat.com> | 2016-10-14 17:31:36 -0400 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2016-10-14 17:31:36 -0400 |
commit | 9570a621b2a04dfa6d67cf7c5a70c9e82f67e620 (patch) | |
tree | 48e7a9e19f957aa51181d1c990956825d974fd19 /playbooks/gce/openshift-cluster/terminate.yml | |
parent | bef26dc9429b3c450c572850544d4e10e3e9ad2c (diff) | |
download | openshift-9570a621b2a04dfa6d67cf7c5a70c9e82f67e620.tar.gz openshift-9570a621b2a04dfa6d67cf7c5a70c9e82f67e620.tar.bz2 openshift-9570a621b2a04dfa6d67cf7c5a70c9e82f67e620.tar.xz openshift-9570a621b2a04dfa6d67cf7c5a70c9e82f67e620.zip |
Template with_items for upstream ansible-2.2 compat.
Diffstat (limited to 'playbooks/gce/openshift-cluster/terminate.yml')
-rw-r--r-- | playbooks/gce/openshift-cluster/terminate.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/playbooks/gce/openshift-cluster/terminate.yml b/playbooks/gce/openshift-cluster/terminate.yml index 6a0ac088a..68e60f9d4 100644 --- a/playbooks/gce/openshift-cluster/terminate.yml +++ b/playbooks/gce/openshift-cluster/terminate.yml @@ -12,7 +12,7 @@ groups: oo_hosts_to_terminate ansible_ssh_user: "{{ deployment_vars[deployment_type].ssh_user }}" ansible_become: "{{ deployment_vars[deployment_type].become }}" - with_items: (groups['tag_clusterid-' ~ cluster_id] | default([])) | difference(['localhost']) + with_items: "{{ (groups['tag_clusterid-' ~ cluster_id] | default([])) | difference(['localhost']) }}" - name: Unsubscribe VMs hosts: oo_hosts_to_terminate @@ -43,7 +43,7 @@ pem_file: "{{ lookup('env', 'gce_service_account_pem_file_path') }}" project_id: "{{ lookup('env', 'gce_project_id') }}" zone: "{{ lookup('env', 'zone') }}" - with_items: groups['oo_hosts_to_terminate'] | default([], true) + with_items: "{{ groups['oo_hosts_to_terminate'] | default([], true) }}" when: item is defined #- include: ../openshift-node/terminate.yml |