Skip to content

Commit

Permalink
Enable gravity list updates for idempotent runs without update.
Browse files Browse the repository at this point in the history
Changed:
* Added logic to trigger gravity DB update when idempotent is enabled but pihole
  updates are disable.

Fixes #24
  • Loading branch information
r-pufky committed Oct 27, 2023
1 parent 0fb77b8 commit 80b6aa0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/db/db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@

- name: 'db | update gravity adlists'
ansible.builtin.command: 'pihole -g'
when: not pihole_installed
when: >
not pihole_installed or
(pihole_idempotent and not pihole_update_enable)

0 comments on commit 80b6aa0

Please sign in to comment.