mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-18 11:12:23 +03:00
9a7b021eb8
Consistent boolean values in ansible playbooks
13 lines
338 B
YAML
13 lines
338 B
YAML
---
|
|
- name: "Reset | check if network device {{ iface }} is present"
|
|
stat:
|
|
path: "/sys/class/net/{{ iface }}"
|
|
get_attributes: false
|
|
get_checksum: false
|
|
get_mime: false
|
|
register: device_remains
|
|
|
|
- name: "Reset | remove network device {{ iface }}"
|
|
command: "ip link del {{ iface }}"
|
|
when: device_remains.stat.exists
|