infrastructure/ansible/roles/adguardhome/tasks/main.yml
Jake Howard d5a7a61171
All checks were successful
/ terraform (push) Successful in 38s
/ ansible (push) Successful in 1m30s
Remove unnecessary use of become from some roles
This should make execution much faster
2024-09-09 17:09:03 +01:00

30 lines
672 B
YAML

- name: Install adguardhome
kewlfft.aur.aur:
name: adguardhome-bin
- 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
- name: Use resolved resolv.conf
file:
src: /run/systemd/resolve/resolv.conf
dest: /etc/resolv.conf
state: link
notify: restart systemd-resolved
- name: Install coredns
kewlfft.aur.aur:
name: coredns
- name: Install coredns config file
template:
src: files/Corefile
dest: /etc/coredns/Corefile
owner: coredns
mode: "0644"
notify: restart coredns