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
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Update gravity
|
||||
- name: Update Pi-hole core components
|
||||
command: pihole -up
|
||||
register: update_out
|
||||
|
||||
- name: Update Pi-hole blocklists
|
||||
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