blob: 53a65dd608e9c4876205012996e76de11c07897b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
---
# file: roles/cleanup/tasks/sut.yaml
- name: Host cleanup
block:
- name: Kill processes - qemu
import_tasks: kill_process.yaml
vars:
process: "qemu"
tags: kill-process
- name: Kill processes - l3fwd
import_tasks: kill_process.yaml
vars:
process: "l3fwd"
tags: kill-process
- name: Kill processes - testpmd
import_tasks: kill_process.yaml
vars:
process: "testpmd"
tags: kill-process
- name: Kill processes - iperf3
import_tasks: kill_process.yaml
vars:
process: "iperf3"
tags: kill-process
- name: Kill processes - vpp_echo
import_tasks: kill_process.yaml
vars:
process: "vpp_echo"
tags: kill-process
- name: Find file or dir - Core zip file
find:
paths: "/tmp/"
patterns: "*tar.lzo.lrz.xz*"
register: files_to_delete
tags: remove-file-dir
- name: Remove file or dir - Core zip file
file:
path: "{{ item.path }}"
state: absent
with_items: "{{ files_to_delete.files }}"
tags: remove-file-dir
- name: Find file or dir - Core dump file
find:
paths: "/tmp/"
patterns: "*core*"
register: files_to_delete
tags: remove-file-dir
- name: Remove file or dir - Core dump file
file:
path: "{{ item.path }}"
state: absent
with_items: "{{ files_to_delete.files }}"
tags: remove-file-dir
- name: Kill containers - Remove all containers
import_tasks: kill_containers.yaml
tags: kill-containers
- name: Remove packages - Remove VPP
import_tasks: remove_package.yaml
vars:
package: "*vpp*"
tags: remove-package
|