Skip to content

Commit

Permalink
fixes: ERROR! The requested handler <'Reboot containers' / 'Reboot se… (
Browse files Browse the repository at this point in the history
#348)

* fixes: ERROR! The requested handler <'Reboot containers' / 'Reboot server' / 'Reboot>' was not found in either the main handlers list nor in the listening handlers list

* Update main.yml
  • Loading branch information
marpi82 authored Aug 14, 2023
1 parent 9707bc8 commit a9904d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/lxc/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
- name: Reboot server
become: true
reboot:
listen: reboot server
2 changes: 2 additions & 0 deletions roles/proxmox_lxc/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions roles/raspberrypi/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
- name: Reboot
reboot:
listen: reboot

0 comments on commit a9904d1

Please sign in to comment.