dnsservice/ansible/tasks/dns.yml

11 lines
327 B
YAML

- name: install sdns
apt:
deb: https://github.com/semihalev/sdns/releases/download/v1.3.7/sdns_1.3.7_x86_64.deb
- name: copy sdns config
copy:
src: "{{ playbook_dir }}/files/sdns.conf"
dest: "/etc/sdns.conf"
notify: "restart sdns"
- name: ensure sdns is running
service: name=sdns state=started enabled=yes