iloth_ansible/roles/unbound/tasks/main.yml

22 lines
378 B
YAML

---
- name: install unbound DNS server
apt:
name: unbound
state: present
- name: Copy Configuration file for unbound
ansible.builtin.copy:
src: resolver.conf
dest: /etc/unbound/unbound.conf
owner: root
group: root
mode: '0644'
- name: Enable and start unbound service
shell: |
systemctl enable unbound
systemctl restart unbound