Add network configuration to Installer tasks

This commit is contained in:
Christer Warén
2025-08-05 15:09:54 +03:00
parent 728b7ec0f1
commit d694c4cbf6
2 changed files with 25 additions and 0 deletions

18
files/network/interfaces Normal file
View File

@@ -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

View File

@@ -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