From 2defb06c574eed255986bc1efd5d2d041ff86f44 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Mon, 27 Mar 2017 17:39:04 +0200 Subject: [PATCH] Add batman role --- roles/batman/tasks/main.yml | 16 ++++++++++++++++ site.yml | 1 + 2 files changed, 17 insertions(+) create mode 100644 roles/batman/tasks/main.yml diff --git a/roles/batman/tasks/main.yml b/roles/batman/tasks/main.yml new file mode 100644 index 0000000..bc8c807 --- /dev/null +++ b/roles/batman/tasks/main.yml @@ -0,0 +1,16 @@ +--- + +- name: Enable backports + apt_repository: repo='deb http://httpredir.debian.org/debian jessie-backports main' state=present + +- name: Install linux-image + apt: name=linux-image-amd64 default_release=jessie-backports state=latest + +- name: Install batctl + apt: name=batctl default_release=jessie-backports state=latest + +- name: Enable batman during boot + lineinfile: dest=/etc/modules line=batman-adv + +- name: Load batman-adv module + modprobe: name=batman-adv diff --git a/site.yml b/site.yml index dc3c250..33da1cf 100644 --- a/site.yml +++ b/site.yml @@ -10,6 +10,7 @@ - name: Setup gateway servers hosts: gw31.regensburg.freifunk.net roles: + - batman - fastd - dns