summaryrefslogtreecommitdiffstats
path: root/roles/pihole
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-12-12 01:09:46 +0100
committerAhmed Abdelhalim <[email protected]>2025-12-12 01:11:35 +0100
commiteeb3d16d53f31a311a4ecdaa644195c83733fcd4 (patch)
tree95bb0bd9114b6ea399b69300f4bb160789e6ffb3 /roles/pihole
parenteffdee4dd7680eda8230fb7b4996180cfbb8ce05 (diff)
Fix warning in ideompotence testing about pihole_install.stdout missing
Diffstat (limited to 'roles/pihole')
-rw-r--r--roles/pihole/handlers/main.yml4
-rw-r--r--roles/pihole/tasks/main.yml5
2 files changed, 5 insertions, 4 deletions
diff --git a/roles/pihole/handlers/main.yml b/roles/pihole/handlers/main.yml
index 68f4f3a0..87e77475 100644
--- a/roles/pihole/handlers/main.yml
+++ b/roles/pihole/handlers/main.yml
@@ -16,3 +16,7 @@
ansible.builtin.systemd_service:
name: "NetworkManager"
state: "restarted"
+
+- name: "Show install output"
+ ansible.builtin.debug:
+ var: pihole_install.stdout
diff --git a/roles/pihole/tasks/main.yml b/roles/pihole/tasks/main.yml
index 27c7e6c1..4a3ad1e9 100644
--- a/roles/pihole/tasks/main.yml
+++ b/roles/pihole/tasks/main.yml
@@ -71,10 +71,7 @@
args:
creates: "/usr/local/bin/pihole"
when: not pihole_binary.stat.exists
-
-- name: "Show install output"
- ansible.builtin.debug:
- var: pihole_install.stdout
+ notify: "Show install output"
- name: "Ensure Pi-hole started/enabled"
become: true