Update playbooks/update_pihole_blocklists.yml

This commit is contained in:
2025-11-13 04:55:57 +00:00
parent bdb7d82e77
commit ea8060ab8a
+14 -2
View File
@@ -1,6 +1,18 @@
- name: Update Pi-hole blocklists ---
- name: Update Pi-hole core and blocklists
hosts: pihole hosts: pihole
become: yes become: yes
tasks: tasks:
- name: Update gravity - name: Update Pi-hole core components
command: pihole -up
register: update_out
- name: Update Pi-hole blocklists
command: pihole -g command: pihole -g
register: gravity_out
- name: Display update summary
debug:
msg:
- "Core update: {{ update_out.stdout }}"
- "Gravity update: {{ gravity_out.stdout }}"