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:
parent
9707bc8a58
commit
a9904d1562
@ -2,3 +2,4 @@
|
||||
- name: Reboot server
|
||||
become: true
|
||||
reboot:
|
||||
listen: reboot server
|
||||
|
||||
@ -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,3 +1,4 @@
|
||||
---
|
||||
- name: Reboot
|
||||
reboot:
|
||||
listen: reboot
|
||||
|
||||
Loading…
Reference in New Issue
Block a user