summaryrefslogtreecommitdiff
path: root/ansible/roles/router/tasks/main.yml
blob: bd28a11f3155566659478b8b13d2b8680256d3ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
- name: install ferm
  apt: name=ferm

- name: copy ferm.conf
  copy: >
    src=ferm.conf dest=/etc/ferm/ferm.conf
    owner=root group=root mode=0640
  notify: restart ferm

- name: remove installer eth3 configuration
  file: path=/etc/network/interfaces.d/router state=absent
  notify: reload interfaces

- name: configure switch interfaces
  template: src=ifupdown-switch dest=/etc/network/interfaces.d/switch
  notify: reload interfaces

- name: reconfigure dnsmasq
  copy: src=dnsmasq-router dest=/etc/dnsmasq.d/router
  notify: restart dnsmasq

- name: set up packet forwarding sysctl config
  copy: src=sysctl-routing.conf dest=/etc/sysctl.d/routing.conf
  notify: load sysctl config