From a6b405d31e03ed9d84678933c6de9eac5c33b79c Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 30 Sep 2024 10:39:29 -0700 Subject: [PATCH] vhost_reboot: what a lovely delegation Signed-off-by: Kevin Fenzi --- playbooks/vhost_reboot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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