ansible/roles/kresd/tasks/main.yml

24 lines
410 B
YAML
Raw Normal View History

2022-08-26 02:01:12 +02:00
---
- name: Install knot-resolver
apt:
2023-04-08 00:54:13 +02:00
name:
- knot-resolver
- knot-resolver-module-http
2022-08-26 02:01:12 +02:00
- 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
...