main.yml 830 B

123456789101112131415161718192021222324252627
  1. ---
  2. # tasks file for batman
  3. - name: Install B.A.T.M.A.N. ctl via APT
  4. apt: name={{item}} state=present
  5. with_items:
  6. - batctl
  7. - name: Add universe factory GPG repo key
  8. when: ansible_distribution == 'Ubuntu'
  9. apt_key: keyserver=pgpkeys.mit.edu id=16EF3F64CB201D9C
  10. - name: Add universe factory repo to get batman-adv kernel module for Ubuntu
  11. when: ansible_distribution == 'Ubuntu'
  12. apt_repository: repo='deb http://repo.universe-factory.net/debian/ sid main' state=present update_cache=yes
  13. - name: Install B.A.T.M.A.N. kernel module
  14. when: ansible_distribution == "Ubuntu"
  15. apt: name=batman-adv-dkms state=present
  16. - name: Enable batman module on boot
  17. lineinfile: dest=/etc/modules line=batman_adv
  18. - name: Load batman-adv kernel module
  19. modprobe: name=batman_adv state=present
  20. # TODO make sure bat14 mode is used