fixes: ERROR! The requested handler <'Reboot containers' / 'Reboot se… (#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
This commit is contained in:
Marek Pilch
2023-08-15 00:37:20 +02:00
committed by GitHub
parent 9707bc8a58
commit a9904d1562
3 changed files with 4 additions and 0 deletions

View File

@@ -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