diff --git a/playbooks/vhost_reboot.yml b/playbooks/vhost_reboot.yml index 040c10e15f..62aee4780d 100644 --- a/playbooks/vhost_reboot.yml +++ b/playbooks/vhost_reboot.yml @@ -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