vhost_reboot: what a lovely delegation

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2024-09-30 10:39:29 -07:00
parent 6667a00f28
commit a6b405d31e

View file

@ -79,7 +79,7 @@
- name: shutdown vms
virt: command=shutdown name={{ inventory_hostname }}
ignore_errors: true
delegate_to: "{{ target[0] }}"
delegate_to: "{{ hostvars[groups['target'][0]]['ansible_fqdn'] }}"
- name: wait for the whole set to die.
hosts: myvms_new