ansible/roles/docker/tasks/pihole.yml

22 lines
513 B
YAML

---
- name: Create pihole-config directory
file:
path: "{{ item }}"
owner: "{{ puid }}"
group: "{{ pgid }}"
mode: '755'
state: directory
loop:
- "{{ docker_dir }}/pihole/etc-pihole/"
- "{{ docker_dir }}/pihole/etc-dnsmasq.d/"
become: true
- name: Copy wildcard config
template:
owner: "{{ puid }}"
src: "templates/common/pihole/etc-dnsmasq/02-wildcard-dns.conf"
dest: "{{ docker_dir }}/pihole/etc-dnsmasq.d/02-wildcard-dns.conf"
mode: '660'
become: true