Merge "Do not assume the CNI config directory exists"
This commit is contained in:
commit
dee66d8983
@ -60,11 +60,12 @@ outputs:
|
|||||||
package:
|
package:
|
||||||
name: podman
|
name: podman
|
||||||
state: latest
|
state: latest
|
||||||
- name: Remove default cni config for cni0
|
- name: Remove default cni config for cni0 if exists
|
||||||
copy:
|
copy:
|
||||||
dest: /etc/cni/net.d/87-podman-bridge.conflist
|
dest: /etc/cni/net.d/87-podman-bridge.conflist
|
||||||
content: ''
|
content: ''
|
||||||
force: yes
|
force: yes
|
||||||
|
ignore_errors: True
|
||||||
- name: Delete cni0 interface if exists
|
- name: Delete cni0 interface if exists
|
||||||
command: ip link delete cni0
|
command: ip link delete cni0
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
@ -88,11 +89,12 @@ outputs:
|
|||||||
- name: Install podman packages on upgrade if missing
|
- name: Install podman packages on upgrade if missing
|
||||||
when: step|int == 3
|
when: step|int == 3
|
||||||
package: name=podman state=latest
|
package: name=podman state=latest
|
||||||
- name: Remove default cni config for cni0
|
- name: Remove default cni config for cni0 if exists
|
||||||
copy:
|
copy:
|
||||||
dest: /etc/cni/net.d/87-podman-bridge.conflist
|
dest: /etc/cni/net.d/87-podman-bridge.conflist
|
||||||
content: ''
|
content: ''
|
||||||
force: yes
|
force: yes
|
||||||
|
ignore_errors: True
|
||||||
- name: Delete cni0 interface if exists
|
- name: Delete cni0 interface if exists
|
||||||
command: ip link delete cni0
|
command: ip link delete cni0
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
|
Loading…
Reference in New Issue
Block a user