From a9904d15629294f9974eddb08fe5f0cd181cc78b Mon Sep 17 00:00:00 2001 From: Marek Pilch <47844572+marpi82@users.noreply.github.com> Date: Tue, 15 Aug 2023 00:37:20 +0200 Subject: [PATCH] =?UTF-8?q?fixes:=20ERROR!=20The=20requested=20handler=20' was not found in either the main handlers list nor in the listening handlers list * Update main.yml --- roles/lxc/handlers/main.yml | 1 + roles/proxmox_lxc/handlers/main.yml | 2 ++ roles/raspberrypi/handlers/main.yml | 1 + 3 files changed, 4 insertions(+) diff --git a/roles/lxc/handlers/main.yml b/roles/lxc/handlers/main.yml index 7d73985d6..6450e4c7f 100644 --- a/roles/lxc/handlers/main.yml +++ b/roles/lxc/handlers/main.yml @@ -2,3 +2,4 @@ - name: Reboot server become: true reboot: + listen: reboot server diff --git a/roles/proxmox_lxc/handlers/main.yml b/roles/proxmox_lxc/handlers/main.yml index 565c882cb..0d5d983de 100644 --- a/roles/proxmox_lxc/handlers/main.yml +++ b/roles/proxmox_lxc/handlers/main.yml @@ -5,7 +5,9 @@ set_fact: proxmox_lxc_filtered_ids: >- {{ proxmox_lxc_filtered_files | map("split", "/") | map("last") | map("split", ".") | map("first") }} + listen: reboot containers - name: Reboot container command: "pct reboot {{ item }}" loop: "{{ proxmox_lxc_filtered_ids }}" changed_when: true + listen: reboot containers diff --git a/roles/raspberrypi/handlers/main.yml b/roles/raspberrypi/handlers/main.yml index ac385a780..93e745962 100644 --- a/roles/raspberrypi/handlers/main.yml +++ b/roles/raspberrypi/handlers/main.yml @@ -1,3 +1,4 @@ --- - name: Reboot reboot: + listen: reboot