Vlad Korolev 9a7b021eb8
Do not use ‘yes/no’ for boolean values (#11472)
Consistent boolean values in ansible playbooks
2024-08-28 06:30:56 +01:00

25 lines
593 B
YAML

---
- name: Reset | check cni network device
stat:
path: /sys/class/net/cni0
get_attributes: false
get_checksum: false
get_mime: false
register: cni
- name: Reset | remove the network device created by the flannel
command: ip link del cni0
when: cni.stat.exists
- name: Reset | check flannel network device
stat:
path: /sys/class/net/flannel.1
get_attributes: false
get_checksum: false
get_mime: false
register: flannel
- name: Reset | remove the network device created by the flannel
command: ip link del flannel.1
when: flannel.stat.exists