summaryrefslogtreecommitdiff
path: root/ansible/roles/router/tasks/main.yml
blob: 2bfaa99ee034ddc7efeb74035cc4407be437f311 (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
25
26
27
28
29
30
31
- name: install ferm
  apt: name=ferm

- name: install ferm.conf
  copy:
    src: ferm.conf
    dest: /etc/ferm/ferm.conf
    owner: root
    group: root
    mode: 0640

- name: restart ferm
  service:
    name: ferm
    state: restarted

- name: configure eth1 and eth2
  copy:
    src: interfaces-eth1-eth2
    dest: /etc/network/interfaces.d

- name: bring up eth1 and eth2
  shell: ifup eth1 eth2

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

- name: load sysctl config change
  shell: sysctl -p /etc/sysctl.d/enable-routing.conf