This repository has been archived on 2020-08-18. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-dns/tasks/main.yml

19 lines
403 B
YAML

- name: Install Unbound
apt:
install_recommends: no
name: unbound
state: present
cache_valid_time: 3600
- name: Copy configuration files
copy:
follow: yes
src: roles/dns/files/
dest: /etc/unbound/
notify:
- reload unbound
- name: Enable unbound in systemd
systemd:
name: unbound
enabled: yes
state: started