aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/cleanup/tasks/sut.yaml
blob: 5083a96a29dd5d480f8311c292bb4f0edc3fb756 (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
---
# file: roles/cleanup/tasks/sut.yaml

- 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: Remove file or dir - HoneyComb logs
  file:
    state: absent
    path: "/var/log/honeycomb"
  tags: remove-file-dir

- name: Remove file or dir - Core zip file
  file:
    state: absent
    path: "/tmp/*tar.lzo.lrz.xz*"
  tags: remove-file-dir

- name: Remove file or dir - Core dump file
  file:
    state: absent
    path: "/tmp/*core*"
  tags: remove-file-dir

- name: Kill containers - Remove all containers
  import_tasks: kill_containers.yaml
  tags: kill-containers

- name: Kubernetes - Reset
  raw: 'kubeadm reset --force'
  tags: kill-kubernetes

- name: Remove packages - Remove VPP
  import_tasks: remove_package.yaml
  vars:
    package: "*vpp*"
  tags: remove-package