64a55c46723580b82e479ee7ada1bc2ba55af8be
[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
18 - name: tg specific
19   include_tasks: tg.yaml
20   when: "'tg' in group_names"
21   tags: cleanup
22
23 - name: sut specific
24   include_tasks: sut.yaml
25   when: "'sut' in group_names"
26   tags: cleanup
27
28 - name: vpp_device specific
29   include_tasks: vpp_device.yaml
30   when: "'vpp_device' in group_names"
31   tags: cleanup