Enable configuring network interfaces
parent
cbcbce118a
commit
854f483af7
|
@ -1,4 +1,8 @@
|
|||
---
|
||||
interfaces:
|
||||
adm: eth0
|
||||
srv: eth1
|
||||
|
||||
postfix:
|
||||
primary: true
|
||||
secondary: false
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
- hosts: voyager.adm.crans.org,boeing.adm.crans.org,fluxx.adm.crans.org,hodaur.adm.crans.org,unifi.adm.crans.org,kiwi.adm.crans.org,roundcube.adm.crans.org,monitoring.adm.crans.org,bigbluebutton.adm.crans.org,codichotomie.adm.crans.org,kiwijuice.adm.crans.org,owl.adm.crans.org,zephir.adm.crans.org,re2o.adm.crans.org
|
||||
- hosts: crans_server
|
||||
vars:
|
||||
vlan:
|
||||
- name: srv
|
||||
|
|
|
@ -14,6 +14,11 @@
|
|||
dest: /etc/network/interfaces
|
||||
mode: 0644
|
||||
|
||||
- name: Remove cloud-init interface configuration
|
||||
file:
|
||||
path: /etc/network/interfaces.d/50-cloud-init
|
||||
state: absent
|
||||
|
||||
- name: Deploy interfaces config
|
||||
template:
|
||||
src: "network/interfaces.d/ifalias.j2"
|
||||
|
|
Loading…
Reference in New Issue