ansible/roles/kresd/tasks/main.yml

23 lines
410 B
YAML

---
- name: Install knot-resolver
apt:
name:
- knot-resolver
- knot-resolver-module-http
- name: Configure kresd
template:
src: kresd.conf.j2
dest: /etc/knot-resolver/kresd.conf
owner: root
group: knot-resolver
mode: u=rw,g=r,o=
notify:
- Restart kresd
- name: Enable and start kresd
systemd:
name: kresd@1.service
state: started
enabled: true
...