Infra: AWS Update to Ubuntu 20.04
[csit.git] / resources / tools / testbed-setup / ansible / roles / cleanup / tasks / main.yaml
1 ---
2 # file: roles/cleanup/tasks/main.yaml
3 # purpose: Structured per server cleanup tasks.
4 # - main:
5 #     - tg:
6 #         - Run tasks on TG servers only.
7 #         - Cleanup processes (T-Rex).
8 #     - sut:
9 #         - Run tasks on SUT servers only.
10 #         - Cleanup file leftovers (logs).
11 #         - Cleanup packages (VPP, Honeycomb).
12 #         - Cleanup processes (qemu, l3fwd, testpmd, docker, kubernetes)
13 #         - Cleanup interfaces.
14 #     - vpp_device
15 #         - Run tasks on vpp_device servers only.
16 #         - Reset SRIOV
17 #         - Docker image cleanup
18 #     - nomad
19 #         - Docker image cleanup
20
21 - name: tg specific
22   include_tasks: tg.yaml
23   when: "'tg' in group_names"
24   tags:
25     - cleanup
26
27 - name: sut specific
28   include_tasks: sut.yaml
29   when: "'sut' in group_names"
30   tags:
31     - cleanup
32
33 - name: vpp_device specific
34   include_tasks: vpp_device.yaml
35   when: "'vpp_device' in group_names"
36   tags:
37     - cleanup
38
39 - name: nomad specific
40   include_tasks: nomad.yaml
41   when: "'nomad' in group_names"
42   tags:
43     - cleanup