diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2015-11-23 11:53:27 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2016-01-04 09:58:39 -0500 |
commit | a21189c1f0611bff6935364c8c255a88060d882d (patch) | |
tree | a69d854a9a2ce78c6917583ff5877cf4199c8a1a /playbooks/openstack/openshift-cluster/terminate.yml | |
parent | f1951b2ca60536e81c9ff26a30b1cfbaf5ca12e9 (diff) | |
download | openshift-a21189c1f0611bff6935364c8c255a88060d882d.tar.gz openshift-a21189c1f0611bff6935364c8c255a88060d882d.tar.bz2 openshift-a21189c1f0611bff6935364c8c255a88060d882d.tar.xz openshift-a21189c1f0611bff6935364c8c255a88060d882d.zip |
Removing environment and env tags.
Diffstat (limited to 'playbooks/openstack/openshift-cluster/terminate.yml')
-rw-r--r-- | playbooks/openstack/openshift-cluster/terminate.yml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/playbooks/openstack/openshift-cluster/terminate.yml b/playbooks/openstack/openshift-cluster/terminate.yml index 2a7f04505..d0abe9fa5 100644 --- a/playbooks/openstack/openshift-cluster/terminate.yml +++ b/playbooks/openstack/openshift-cluster/terminate.yml @@ -6,13 +6,12 @@ vars_files: - vars.yml tasks: - - set_fact: cluster_group=tag_env_{{ cluster_id }} - add_host: name: "{{ item }}" groups: oo_hosts_to_terminate ansible_ssh_user: "{{ deployment_vars[deployment_type].ssh_user }}" ansible_sudo: "{{ deployment_vars[deployment_type].sudo }}" - with_items: groups[cluster_group] | default([]) + with_items: (groups['tag_environment_' ~ cluster_env]|default([])) | groups['tag_clusterid_' ~ cluster_id ] | default([]) - name: Unsubscribe VMs hosts: oo_hosts_to_terminate |