Skip to content

Commit

Permalink
Fix deployment ordering issue with pihole.
Browse files Browse the repository at this point in the history
Fixes #14

Changed:
* Fixed ordering issue with install where FTL-DNS configuration created using
  the 'pihole' user before the installation happened.

Added:
* Debian bookworm.
  • Loading branch information
r-pufky committed Aug 5, 2023
1 parent e340d09 commit b3c4f06
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ galaxy_info:
versions:
- 'buster'
- 'bullseye'
- 'bookworm'
- name: 'EL'
versions:
- 'all'
Expand Down
18 changes: 9 additions & 9 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
Expand Down

0 comments on commit b3c4f06

Please sign in to comment.