Merge branch 'network-interfaces' into 'newinfra'
Enable configuring network interfaces See merge request nounous/ansible!187certbot_on_virtu
commit
2fbd03dbb5
|
@ -1,4 +1,8 @@
|
||||||
---
|
---
|
||||||
|
interfaces:
|
||||||
|
adm: eth0
|
||||||
|
srv: eth1
|
||||||
|
|
||||||
postfix:
|
postfix:
|
||||||
primary: true
|
primary: true
|
||||||
secondary: false
|
secondary: false
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env ansible-playbook
|
#!/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:
|
vars:
|
||||||
vlan:
|
vlan:
|
||||||
- name: srv
|
- name: srv
|
||||||
|
|
|
@ -14,6 +14,11 @@
|
||||||
dest: /etc/network/interfaces
|
dest: /etc/network/interfaces
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Remove cloud-init interface configuration
|
||||||
|
file:
|
||||||
|
path: /etc/network/interfaces.d/50-cloud-init
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Deploy interfaces config
|
- name: Deploy interfaces config
|
||||||
template:
|
template:
|
||||||
src: "network/interfaces.d/ifalias.j2"
|
src: "network/interfaces.d/ifalias.j2"
|
||||||
|
|
Loading…
Reference in New Issue