Add create option

This commit is contained in:
dadav
2019-10-03 12:05:04 +02:00
parent cd78b32a53
commit 8d5bdfc7cc

View File

@ -204,6 +204,7 @@
- name: configure lo interface - name: configure lo interface
blockinfile: blockinfile:
path: /etc/network/interfaces.d/lo-cfg path: /etc/network/interfaces.d/lo-cfg
create: yes
block: | block: |
auto lo auto lo
iface lo inet loopback iface lo inet loopback
@ -211,6 +212,7 @@
- name: configure wlan interface - name: configure wlan interface
blockinfile: blockinfile:
path: /etc/network/interfaces.d/wlan0-cfg path: /etc/network/interfaces.d/wlan0-cfg
create: yes
block: | block: |
allow-hotplug wlan0 allow-hotplug wlan0
iface wlan0 inet static iface wlan0 inet static