summaryrefslogtreecommitdiff
path: root/roles/setup_batman/tasks/main.yml
blob: b8f49daf3e7429d20e201d67a231b02356e00fb9 (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: load batman-adv kernel module at boot
  copy:
      src: modules-load.d_batman.conf
      dest: /etc/modules-load.d/batman.conf

- name: load batman-adv kernel module
  modprobe:
      name: batman-adv
      state: present

- name: install batctl
  pacman:
      name: batctl
      state: present

- name: name ffmyk routing table
  lineinfile:
      path: /etc/iproute2/rt_tables
      line: 42 ffmyk

- name: copy ffmyk iproute config script
  copy:
      src: ffmyk-iproute.sh
      dest: /usr/local/bin/ffmyk-iproute.sh
      mode: 0744

- name: add netctl config
  template:
      src: netctl_bat0.j2
      dest: /etc/netctl/bat0