From 5c8438ec07bf1b677b345f356820d92fada37c0b Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 23 Dec 2022 15:40:57 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Ebasics.yml=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- basics.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/basics.yml b/basics.yml index 350324f..f3f2295 100644 --- a/basics.yml +++ b/basics.yml @@ -100,12 +100,14 @@ path: /etc/network/interfaces regexp: '(^allow-hotplug .*)' replace: '#\1' + when: stat_result.stat.exists - name: Disable all Network-config but source interfaces.d in /etc/network/interfaces because dhcpcd will do the job replace: path: /etc/network/interfaces regexp: '(^auto .*)' replace: '#\1' + when: stat_result.stat.exists - name: Set a hostname ansible.builtin.hostname: