From e398046ebb8b36a39c55d2415a31a04cd92bcb08 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sun, 24 Nov 2019 23:14:31 +0000 Subject: [PATCH] virt-instance-create: this is a var Signed-off-by: Kevin Fenzi --- tasks/virt_instance_create.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/virt_instance_create.yml b/tasks/virt_instance_create.yml index 6decc1ea5e..8d921eaff9 100644 --- a/tasks/virt_instance_create.yml +++ b/tasks/virt_instance_create.yml @@ -4,11 +4,12 @@ - include_vars: dir=/srv/web/infra/ansible/vars/all/ ignore_files=README - name: get vm list + vars: + ansible_python_interpreter: hostvars[vmhost]['ansible_python_interpreter'] delegate_to: "{{ vmhost }}" virt: command=list_vms register: result check_mode: no - ansible_python_interpreter: hostvars[vmhost]['ansible_python_interpreter'] #- name: ensure no old facts exist # delegate_to: localhost