diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2016-01-04 11:44:50 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2016-01-04 11:44:50 -0500 |
commit | 1a5319841b028d94294f683e407963742f340fe5 (patch) | |
tree | 08aa6aa833a3bf04cab1645b790bee1bc27ef6f3 /playbooks/gce/openshift-cluster/terminate.yml | |
parent | 265cd64555c9262f0896505caa6b036f6092dd0d (diff) | |
parent | da8165469a43dc3bf43b2024a76edcd04be0bb81 (diff) | |
download | openshift-1a5319841b028d94294f683e407963742f340fe5.tar.gz openshift-1a5319841b028d94294f683e407963742f340fe5.tar.bz2 openshift-1a5319841b028d94294f683e407963742f340fe5.tar.xz openshift-1a5319841b028d94294f683e407963742f340fe5.zip |
Merge pull request #958 from kwoodson/envfix
Fixing meta data tags env and environment
Diffstat (limited to 'playbooks/gce/openshift-cluster/terminate.yml')
-rw-r--r-- | playbooks/gce/openshift-cluster/terminate.yml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/playbooks/gce/openshift-cluster/terminate.yml b/playbooks/gce/openshift-cluster/terminate.yml index f4e89983b..faa46c0d6 100644 --- a/playbooks/gce/openshift-cluster/terminate.yml +++ b/playbooks/gce/openshift-cluster/terminate.yml @@ -7,13 +7,12 @@ vars_files: - vars.yml tasks: - - set_fact: scratch_group=tag_env-{{ cluster_id }} - add_host: name: "{{ item }}" groups: oo_hosts_to_terminate ansible_ssh_user: "{{ deployment_vars[deployment_type].ssh_user | default(ansible_ssh_user, true) }}" ansible_sudo: "{{ deployment_vars[deployment_type].sudo }}" - with_items: groups[scratch_group] | default([], true) | difference(['localhost']) | difference(groups.status_terminated | default([], true)) + with_items: (groups['tag_clusterid-' ~ cluster_id] | default([])) | difference(['localhost']) - name: Unsubscribe VMs hosts: oo_hosts_to_terminate |