Prevent duplicated lines

In case where /etc/network/interfaces already contains a similar
line, it is superseeded.

Change-Id: I38f244d093e002f8bc90412c1eacd254ffe31514
This commit is contained in:
Olivier Bourdon 2018-05-29 12:06:01 +02:00
parent 2cb67be496
commit 42d14389b0

View File

@ -140,6 +140,7 @@
lineinfile:
line: "source /etc/network/interfaces.d/*.cfg"
dest: "/etc/network/interfaces"
regexp: "^source /etc/network/interfaces.d/.*"
- name: Set the host intefaces up
command: "/sbin/ifup {{ item.value.iface }}"