mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
vhost_reboot: what a lovely delegation
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user