diff --git a/ansible/roles/destroy/tasks/cleanup_containers.yml b/ansible/roles/destroy/tasks/cleanup_containers.yml
index 4ccdd9cdd87c11445035870ce8566cd5283a901b..c6aee8ef5e80cb08c7419d9441885f62b472d1d7 100644
--- a/ansible/roles/destroy/tasks/cleanup_containers.yml
+++ b/ansible/roles/destroy/tasks/cleanup_containers.yml
@@ -1,3 +1,10 @@
 ---
-- name: Destroying all Kolla containers and volumes
+- name: Destroying all Kolla containers and volumes on compute node
+  environment:
+    COMPUTE: true
   command: /tmp/kolla-cleanup/tools/cleanup-containers
+  when: inventory_hostname in groups['compute']
+
+- name: Destroying all Kolla containers and volumes on non compute node
+  command: /tmp/kolla-cleanup/tools/cleanup-containers
+  when: inventory_hostname not in groups['compute']
diff --git a/tools/cleanup-containers b/tools/cleanup-containers
index 14249c9605ee798b9a0bfbd30e5bd438222dec24..c73d197dda910317149d1d0a5ad23de5fa6e2b3d 100755
--- a/tools/cleanup-containers
+++ b/tools/cleanup-containers
@@ -1,5 +1,5 @@
 #!/bin/bash
-if [[ $(pgrep qemu) ]]; then
+if [[ $COMPUTE ]] && [[ $(pgrep qemu) ]]; then
     echo "Some qemu processes were detected."
     echo "Docker will not be able to stop the nova_libvirt container with those running."
     echo "Please clean them up before rerunning this script."