aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/cleanup/tasks
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-11-13 10:46:16 +0000
committerPeter Mikus <pmikus@cisco.com>2019-11-13 10:47:39 +0000
commitfb30f887863e9cb15a6224a17b8f8b6a5982d1a2 (patch)
tree8e0954c2b1b8256e4b41838272cb18449b525dab /resources/tools/testbed-setup/ansible/roles/cleanup/tasks
parent06e6da52159a865a3fd366d9aad09c31159f9e4b (diff)
FIX: Ansible cleanup permission
Change-Id: Ia79558b579e70aa666e8f84230f4bd2cafb33569 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/cleanup/tasks')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/cleanup/tasks/kill_containers.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/cleanup/tasks/kill_containers.yaml b/resources/tools/testbed-setup/ansible/roles/cleanup/tasks/kill_containers.yaml
index a61aa6ceee..f5948fb3b3 100644
--- a/resources/tools/testbed-setup/ansible/roles/cleanup/tasks/kill_containers.yaml
+++ b/resources/tools/testbed-setup/ansible/roles/cleanup/tasks/kill_containers.yaml
@@ -8,6 +8,7 @@
tags: kill-containers
- name: Kill container - Remove all Docker containers
+ become: yes
docker_container:
name: "{{ item }}"
state: absent
@@ -21,6 +22,7 @@
tags: kill-containers
- name: Kill container - Remove all LXC containers
+ become: yes
lxc_container:
name: '{{ item }}'
state: absent