Commit 37c5c62c authored by Bernhard Geier's avatar Bernhard Geier

do not overwrite Debian's service files, do a systemd override instead

parent d75d9515
Pipeline #244 failed with stages
in 47 seconds
[Unit]
Description=BIND Domain Name Server
Documentation=man:named(8)
After=network.target
[Service]
ExecStart=/usr/sbin/named -f -u bind
ExecReload=/usr/sbin/rndc reload
ExecStop=/usr/sbin/rndc stop
Restart=on-failure
[Install]
WantedBy=multi-user.target
......@@ -57,7 +57,15 @@
with_items: "{{domaenenliste | default([])}}"
when: "{{domaenenliste is defined}}"
- name: bind9.service kopieren
copy: src=bind9.service dest=/lib/systemd/system/bind9.service
- name: create folder for bind9.service file
file: path=/etc/systemd/system/bind9.service.d state=directory mode=0755
- name: copy bind9.service
copy: src=bind9.service dest=/etc/systemd/system/bind9.service.d/override.conf
notify:
- restart bind9
- name: reread systemd configs
systemd:
daemon_reload: yes
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment