New server setup based on ubuntu
This commit is contained in:
20
roles/server-link-aggregation/files/interfaces
Normal file
20
roles/server-link-aggregation/files/interfaces
Normal file
@@ -0,0 +1,20 @@
|
||||
source /etc/network/interfaces.d/*
|
||||
|
||||
# The loopback network interface
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
## The primary network interface
|
||||
#allow-hotplug enp2s0
|
||||
#iface enp2s0 inet dhcp
|
||||
## This is an autoconfigured IPv6 interface
|
||||
#iface enp2s0 inet6 auto
|
||||
|
||||
auto bond0
|
||||
|
||||
iface bond0 inet dhcp
|
||||
bond-slaves enp3s0 enp4s0 enp5s0
|
||||
bond-mode 802.3ad
|
||||
bond-lacp-rate 1
|
||||
bond-miimon 100
|
||||
bond-xmit-hash-policy layer3+4
|
||||
8
roles/server-link-aggregation/tasks/main.yml
Normal file
8
roles/server-link-aggregation/tasks/main.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
|
||||
- name: Apt install download & unzip packages
|
||||
apt:
|
||||
name:
|
||||
- ifenslave
|
||||
- name: Interface file
|
||||
copy: src=interfaces dest=/etc/network/interfaces
|
||||
Reference in New Issue
Block a user