main.yml 784 B

12345678910111213141516171819202122232425262728
  1. ---
  2. - name: Ensure batctl is installed
  3. apt: name=batctl
  4. - name: Enable batman module on boot
  5. lineinfile: dest=/etc/modules line=batman_adv
  6. - name: Load batman-adv kernel module
  7. modprobe: name=batman_adv state=present
  8. - name: Install batman-adv mesh interface definition
  9. template:
  10. dest: "/etc/network/interfaces.d/40_batman.cfg"
  11. src: "batman.cfg.j2"
  12. - name: Install gretap tunnel definitions
  13. template:
  14. dest: "/etc/network/interfaces.d/45_batman-tunnel.cfg"
  15. src: "batman-tunnel.cfg.j2"
  16. - name: Install IPv6 routing to bat0
  17. template: src=batman6.conf.j2 dest=/etc/bird/conf6.d/batman6.conf
  18. notify: Reload bird daemons
  19. - name: Install IPv4 routing to bat0
  20. template: src=batman.conf.j2 dest=/etc/bird/conf.d/batman.conf
  21. notify: Reload bird daemons