Update playbooks/update_pihole_blocklists.yml
This commit is contained in:
@@ -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 }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user