main.yml 618 B

123456789101112
  1. - name: load kernel modules
  2. shell: /etc/init.d/kmod start || true
  3. - name: restart networking
  4. shell: systemctl restart networking; if systemctl -q is-active isc-dhcp-server; then systemctl restart isc-dhcp-server; fi; if systemctl -q is-active kea-dhcp4.service; then systemctl restart kea-dhcp4.service; fi; if systemctl -q is-active tunneldigger; then systemctl restart tunneldigger; fi
  5. - name: restart tunneldigger per domain
  6. service: name="tunneldigger@{{item.key}}.service" state=restarted
  7. with_dict: "{{domaenenliste}}"
  8. - name: restart tunneldigger
  9. service: name=tunneldigger.service state=restarted