|
6 months ago | |
---|---|---|
group_vars | 6 months ago | |
roles/hwservers-vlan | 6 months ago | |
.gitignore | 6 months ago | |
README.md | 6 months ago | |
ansible.cfg | 6 months ago | |
inventory.ini | 6 months ago | |
playbook-vlan.yml | 6 months ago |
By default playbook creates /24 VLAN network with ID you created in control panel. Supports Ubuntu 16.04 and 18.04, but I'm sure you can modify it to your needs.
inventory.ini
file, just as examplesgroup_vars/hwservers-vlan.yaml
set vlan_id
Playbook will create file /etc/network/interfaces.d/vlan
and run command to activate it
auto enp4s0.4000
iface enp4s0.4000 inet static
address 10.0.50.11
netmask 255.255.255.0
vlan-raw-device enp4s0
mtu 1400