* 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
14 lines
456 B
YAML
14 lines
456 B
YAML
---
|
|
- name: Reboot containers
|
|
block:
|
|
- name: Get container ids from filtered files
|
|
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
|