main.yml 415 B

123456789101112
  1. # creating batman interfaces
  2. - name: Create interfaces - batman file
  3. template: src="batman.j2" dest="/etc/network/interfaces.d/30_batman.cfg"
  4. notify:
  5. - restart networking
  6. #append line in interfaces file for reading additional config files
  7. - name: let read interfaces from interfaces
  8. lineinfile: dest="/etc/network/interfaces" line="source /etc/network/interfaces.d/*"
  9. notify:
  10. - restart networking