Merge branch 'network-interfaces' into 'newinfra'

Enable configuring network interfaces

See merge request nounous/ansible!187
certbot_on_virtu
_pollion 2021-01-10 21:35:54 +01:00
commit 2fbd03dbb5
3 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,8 @@
--- ---
interfaces:
adm: eth0
srv: eth1
postfix: postfix:
primary: true primary: true
secondary: false secondary: false

View File

@ -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

View File

@ -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"