Debian Codegraph @

ansible_collections/containers/podman/tests/integration/targets/podman_pod/tasks/net-pod.yml

raw
1 - name: Test podman rootful pod
2 block:
3
4 - name: Remove pods
5 containers.podman.podman_pod:
6 executable: "{{ test_executable | default('podman') }}"
7 name: "rootnetpod"
8 state: absent
9
10 - name: Delete all network leftovers from tests
11 containers.podman.podman_network:
12 executable: "{{ test_executable | default('podman') }}"
13 name: "{{ item }}"
14 state: absent
15 force: true
16 loop:
17 - testnet
18 - anothernet
19
20 - name: Create network testnet
21 command: podman network create testnet --subnet 10.91.91.0/24
22
23 - name: Create network anothernet
24 command: podman network create anothernet --subnet 10.71.71.0/24
25
26 - name: List current networks
27 command: podman network ls
28
29 - name: Set test data
30 set_fact:
31 testdata:
32 - first_net: host
33 next_net: bridge
34 - first_net: bridge
35 next_net: host
36 - first_net: anothernet
37 next_net: testnet
38 - first_net: testnet
39 next_net:
40 - testnet
41 - anothernet
42 - first_net:
43 - testnet
44 - anothernet
45 next_net: anothernet
46 - first_net:
47 - testnet
48 - anothernet
49 next_net: bridge
50 - first_net:
51 - testnet
52 - anothernet
53 next_net: host
54 - first_net: host
55 next_net: anothernet
56 - first_net: bridge
57 next_net:
58 - anothernet
59 - testnet
60
61 - include_tasks: network-tests.yml
62 loop: "{{ testdata }}"
63
64 always:
65
66 - name: Delete all pods leftovers from tests
67 containers.podman.podman_pod:
68 executable: "{{ test_executable | default('podman') }}"
69 name: "rootnetpod"
70 state: absent
71
72 - name: Delete all network leftovers from tests
73 containers.podman.podman_network:
74 executable: "{{ test_executable | default('podman') }}"
75 name: "{{ item }}"
76 state: absent
77 force: true
78 loop:
79 - testnet
80 - anothernet