moved local-ttl to dnsmasq.d

This commit is contained in:
Philip (a-0) 2022-08-07 13:31:59 +02:00
parent 8d0370b2ff
commit e4347eeb4f
4 changed files with 7 additions and 4 deletions

View file

@ -20,7 +20,6 @@
vars:
__os_supported: "{{ lookup('vars', '{}_os_supported'.format(role_name)) | bool }}"
- name: Check whether pi-hole is installed
stat:
path: "{{ pihole_config_dir }}"
@ -50,6 +49,11 @@
warn: false
when: not pihole_dir.stat.exists
- name: Set custom dnsmasq options
template:
src: dnsmasq.conf.j2
dest: /etc/dnsmasq.d/10-custom.conf
- name: Set admin password
shell: "pihole -a -p {{ pihole_admin_password }}"