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

22 lines
455 B
YAML

- name: Copy configuration files
loop:
- internal.conf
- redxen-dns.conf
- unbound.conf
template:
follow: yes
src: '{{ item }}.j2'
dest: "/etc/unbound/{{ item }}"
notify: Run service actions
tags:
- unbound
- config
- name: Set unbound as default dns
template:
src: 'resolv.conf'
dest: /etc/resolv.conf
tags:
- unbound
- config
- defaults