infrastructure/ansible/roles/adguardhome/tasks/main.yml
Jake Howard ac166c3874
All checks were successful
/ terraform (push) Successful in 34s
/ ansible (push) Successful in 1m44s
Start resolved to support mDNS
2024-01-10 13:28:45 +00:00

35 lines
747 B
YAML

- name: Install adguardhome
kewlfft.aur.aur:
name: adguardhome-bin
become: true
- name: Disable resolved stub
template:
src: files/resolved-adguardhome.conf
dest: /etc/systemd/resolved.conf.d/adguardhome.conf
owner: root
mode: "0644"
notify: restart systemd-resolved
become: true
- name: Use resolved resolv.conf
file:
src: /run/systemd/resolve/resolv.conf
dest: /etc/resolv.conf
state: link
notify: restart systemd-resolved
become: true
- name: Install coredns
kewlfft.aur.aur:
name: coredns
become: true
- name: Install coredns config file
template:
src: files/Corefile
dest: /etc/coredns/Corefile
owner: coredns
mode: "0644"
notify: restart coredns
become: true