mirror of
https://github.com/cwchristerw/tjas-infra
synced 2025-08-08 15:24:35 +00:00
Add network configuration to Installer tasks
This commit is contained in:
18
files/network/interfaces
Normal file
18
files/network/interfaces
Normal 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
|
@@ -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
|
||||
|
Reference in New Issue
Block a user