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: