vhost_reboot: what a lovely delegation
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
6667a00f28
commit
a6b405d31e
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@
|
||||||
- name: shutdown vms
|
- name: shutdown vms
|
||||||
virt: command=shutdown name={{ inventory_hostname }}
|
virt: command=shutdown name={{ inventory_hostname }}
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
delegate_to: "{{ target[0] }}"
|
delegate_to: "{{ hostvars[groups['target'][0]]['ansible_fqdn'] }}"
|
||||||
|
|
||||||
- name: wait for the whole set to die.
|
- name: wait for the whole set to die.
|
||||||
hosts: myvms_new
|
hosts: myvms_new
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue