wildcard netplan config delete
This commit is contained in:
parent
4b351ebfec
commit
6acbb03400
|
@ -19,23 +19,23 @@
|
||||||
state: absent
|
state: absent
|
||||||
tags: interfaces
|
tags: interfaces
|
||||||
|
|
||||||
- name: Remove /etc/netplan/01-netcfg.yaml
|
- name: Get directory stats
|
||||||
file:
|
stat:
|
||||||
path: /etc/netplan/01-netcfg.yaml
|
path: "/etc/netplan"
|
||||||
state: absent
|
register: directory_stat
|
||||||
tags: interfaces
|
|
||||||
|
|
||||||
- name: Remove /etc/netplan/50-cloud-init.yaml
|
- name: Delete directory
|
||||||
file:
|
file:
|
||||||
path: /etc/netplan/50-cloud-init.yaml
|
path: "/etc/netplan"
|
||||||
state: absent
|
state: absent
|
||||||
tags: interfaces
|
|
||||||
|
|
||||||
- name: Remove /etc/netplan/00-installer-config.yaml
|
- name: Create directory
|
||||||
file:
|
file:
|
||||||
path: /etc/netplan/00-installer-config.yaml
|
path: "/etc/netplan"
|
||||||
state: absent
|
state: directory
|
||||||
tags: interfaces
|
owner: "{{ directory_stat.stat.pw_name }}"
|
||||||
|
group: "{{ directory_stat.stat.gr_name }}"
|
||||||
|
mode: "{{ directory_stat.stat.mode }}"
|
||||||
|
|
||||||
- name: Add the bonding module
|
- name: Add the bonding module
|
||||||
modprobe:
|
modprobe:
|
||||||
|
|
Loading…
Reference in New Issue