main.yml 436 B

123456789101112131415161718
  1. ---
  2. # tasks file for batman
  3. - name: Install B.A.T.M.A.N. ctl via APT
  4. apt: name={{item}} state=present update_cache=yes cache_valid_time=3600
  5. with_items:
  6. - batctl
  7. - include: ubuntu.yml
  8. when: ansible_distribution == 'Ubuntu'
  9. - name: Enable batman module on boot
  10. lineinfile: dest=/etc/modules line=batman_adv
  11. - name: Load batman-adv kernel module
  12. modprobe: name=batman_adv state=present
  13. # TODO make sure bat14 mode is used