2017-03-27 17:40:34 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install dependencies
|
2020-10-07 21:05:32 +02:00
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- bridge-utils
|
2017-03-27 17:40:34 +02:00
|
|
|
|
2020-10-07 21:05:32 +02:00
|
|
|
# work-around to get a version new enough not to screw up forwarding setting on all interfaces
|
2017-03-27 17:40:34 +02:00
|
|
|
- name: Install ifupdown2
|
2021-07-23 13:11:07 +02:00
|
|
|
apt: deb=http://moepman.eu/tmp/ifupdown2_3.1.0-1_all.deb
|
2017-03-27 17:40:34 +02:00
|
|
|
|
|
|
|
- name: Uninstall ifupdown
|
|
|
|
apt: name=ifupdown state=absent
|
|
|
|
|
2018-02-06 13:56:22 +01:00
|
|
|
# this is required for nginx, dhcpd and other to start correctly
|
|
|
|
# see https://github.com/CumulusNetworks/ifupdown2/issues/30#issuecomment-360589850
|
|
|
|
- name: Install fixed networking.service file
|
|
|
|
copy: src=networking.service dest=/lib/systemd/system/networking.service
|
|
|
|
notify: Reload systemd
|
|
|
|
|
2017-03-27 17:40:34 +02:00
|
|
|
- name: Configure mesh interfaces
|
2018-02-06 13:50:20 +01:00
|
|
|
template: src=mesh.conf.j2 dest=/etc/network/interfaces.d/mesh.conf
|
2017-03-27 17:40:34 +02:00
|
|
|
notify: Reload interfaces
|
2018-01-22 21:57:19 +01:00
|
|
|
|
|
|
|
- name: Configure backbone interfaces
|
2018-02-06 13:50:20 +01:00
|
|
|
template: src=backbone.conf.j2 dest=/etc/network/interfaces.d/backbone.conf
|
2018-01-22 21:57:19 +01:00
|
|
|
notify: Reload interfaces
|