22 lines
481 B
YAML
22 lines
481 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:
|
|
- config
|
|
- unbound
|
|
- name: Set unbound as default dns
|
|
replace:
|
|
path: /etc/resolv.conf
|
|
regexp: "^nameserver.*$"
|
|
replace: "nameserver 127.0.0.1"
|
|
tags:
|
|
- config
|
|
- unbound
|