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 authored and GitHub committed 2023-08-14 17:37:20 -05:00
1 parent 9707bc8a58
commit a9904d1562
3 files changed
+4

No files matched your search

+2
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