diff --git a/meta/main.yml b/meta/main.yml index 9257566..425b037 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -12,6 +12,7 @@ galaxy_info: versions: - 'buster' - 'bullseye' + - 'bookworm' - name: 'EL' versions: - 'all' diff --git a/tasks/install.yml b/tasks/install.yml index d3494c6..1abd147 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -59,15 +59,6 @@ mode: 0644 notify: 'restart pihole dns' -- name: 'install | set FTL config' - ansible.builtin.template: - src: 'pihole-FTL.conf.j2' - dest: '/etc/pihole/pihole-FTL.conf' - owner: 'pihole' - group: 'root' - mode: 0664 # installed permissions. - notify: 'restart pihole dns' - - name: 'install | set binary location' ansible.builtin.stat: path: '/usr/local/bin/pihole' @@ -89,6 +80,15 @@ ansible.builtin.command: '/tmp/pihole-install.sh --unattended' when: not pihole_installed +- name: 'install | set FTL config' + ansible.builtin.template: + src: 'pihole-FTL.conf.j2' + dest: '/etc/pihole/pihole-FTL.conf' + owner: 'pihole' + group: 'root' + mode: 0664 # installed permissions. + notify: 'restart pihole dns' + # Generate random password if no password is set. # # Another manual method: