From d694c4cbf6fd572a96699d76b3b0aa874114e47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Tue, 5 Aug 2025 15:09:54 +0300 Subject: [PATCH] Add network configuration to Installer tasks --- files/network/interfaces | 18 ++++++++++++++++++ tasks/installer.yml | 7 +++++++ 2 files changed, 25 insertions(+) create mode 100644 files/network/interfaces diff --git a/files/network/interfaces b/files/network/interfaces new file mode 100644 index 0000000..9f0d5da --- /dev/null +++ b/files/network/interfaces @@ -0,0 +1,18 @@ +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +source /etc/network/interfaces.d/* + +# The loopback network interface +auto lo +iface lo inet loopback + +# The primary network interface +allow-hotplug enp0s25 +iface enp0s25 inet dhcp + +auto enp0s25.20 +iface enp0s25.20 inet dhcp + +auto enp0s25.69 +iface enp0s25.69 inet dhcp diff --git a/tasks/installer.yml b/tasks/installer.yml index bf2067a..b5b3324 100644 --- a/tasks/installer.yml +++ b/tasks/installer.yml @@ -55,6 +55,11 @@ label: "{{ package }}" loop_var: "package" +- name: "Installer : Network : Configure" + ansible.builtin.template: + src: './files/network/interfaces' + dest: '/etc/network/interfaces' + - name: "Installer : FirewallD : Dependencies - Packages" ansible.builtin.apt: name: @@ -90,6 +95,8 @@ label: "{{ service }}" loop_var: "service" + + - name: "Installer - Ansible - Python Library" ansible.builtin.pip: name: ansible