dnsservice/ansible/tasks/dns.yml

11 lines
327 B
YAML
Raw Normal View History

2024-08-02 04:27:30 +00:00
- 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