main.yml 529 B

12345678910111213141516
  1. ---
  2. # Tasks for getap network interfaces
  3. # create file for gre interfaces
  4. - name: Create interfaces - inter_gre file
  5. template: src="gretap.j2" dest="/etc/network/interfaces.d/30_gretap.cfg"
  6. notify:
  7. - restart networking
  8. when: domaenenliste is defined
  9. #append line in interfaces file for reading additional config files
  10. - name: let read interfaces from interfaces
  11. lineinfile: dest="/etc/network/interfaces" line="source /etc/network/interfaces.d/*"
  12. notify:
  13. - restart networking
  14. when: domaenenliste is defined