ansible-ffibk/roles/kmod-batman/tasks/main.yml
2017-10-02 11:21:01 +02:00

24 lines
508 B
YAML

---
- name: install batman-module and linux headers
apt:
state: present
name: "{{ item }}"
update_cache: yes
cache_valid_time: 21600
with_items:
- linux-headers-amd64
- batman-adv-dkms
- batctl
- name: configure batman module to load on system boot
template:
src: batman-adv.module.conf.j2
dest: /etc/modules-load.d/batman-adv.conf
- name: load batman + dummy module
modprobe:
name: "{{ item }}"
state: present
with_items:
- batman-adv
- dummy