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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -2,3 +2,4 @@
- name: Reboot server
become: true
reboot:
listen: reboot server

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

View File

@ -1,3 +1,4 @@
---
- name: Reboot
reboot:
listen: reboot