From 0176aa46244531d1c1701844802f6c4164e51fcf Mon Sep 17 00:00:00 2001 From: Frank-ZhangXin <zxuuzx@gmail.com> Date: Mon, 2 Oct 2017 16:37:04 -0500 Subject: [PATCH] Exclude elasticsearch from container-destroy task The goal is to keep elasticsearch logs from leap upgrade from Kilo, Liberty and Mitaka to Newton. Change-Id: I14840c16266dcfe2ed0aa0b89078adae441c8569 --- leap-upgrades/upgrade-utilities/destroy-old-containers.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leap-upgrades/upgrade-utilities/destroy-old-containers.yml b/leap-upgrades/upgrade-utilities/destroy-old-containers.yml index b59dd02c..fc54977c 100644 --- a/leap-upgrades/upgrade-utilities/destroy-old-containers.yml +++ b/leap-upgrades/upgrade-utilities/destroy-old-containers.yml @@ -14,7 +14,7 @@ # limitations under the License. - name: Destroy lxc containers except galera - hosts: "all_containers:!galera_all:!neutron_agent:!ceph_all:!rsyslog_all" + hosts: "{{ destroy_hosts | default('all_containers:!galera_all:!neutron_agent:!ceph_all:!rsyslog_all')}}" gather_facts: false user: root tasks: