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.
2020-05-09 14:39:38 +00:00
|
|
|
- name: Copy configuration files
|
|
|
|
loop:
|
|
|
|
- internal.conf
|
|
|
|
- redxen-dns.conf
|
|
|
|
- unbound.conf
|
|
|
|
template:
|
|
|
|
follow: yes
|
|
|
|
src: '{{ item }}.j2'
|
2020-05-16 20:10:28 +00:00
|
|
|
dest: "/etc/unbound/{{ item }}"
|
|
|
|
notify: Run service actions
|
2020-05-09 14:39:38 +00:00
|
|
|
tags:
|
|
|
|
- unbound
|
2020-05-16 20:25:38 +00:00
|
|
|
- config
|
2020-05-16 20:10:28 +00:00
|
|
|
- name: Set unbound as default dns
|
|
|
|
replace:
|
|
|
|
path: /etc/resolv.conf
|
|
|
|
regexp: "^nameserver.*$"
|
|
|
|
replace: "nameserver 127.0.0.1"
|
2020-04-10 14:09:26 +00:00
|
|
|
tags:
|
2020-05-16 20:10:28 +00:00
|
|
|
- unbound
|
2020-05-16 20:25:38 +00:00
|
|
|
- config
|