From 8e90023a96ba1e7fb473b34094c78e39d58bc79e Mon Sep 17 00:00:00 2001 From: William Blonay Date: Tue, 28 Nov 2023 17:19:06 +0200 Subject: [PATCH] Fill up connection_address when DHCP is used --- nova/core/roles/connection/tasks/vsphere.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nova/core/roles/connection/tasks/vsphere.yml b/nova/core/roles/connection/tasks/vsphere.yml index 49dc33bd..61f46c9c 100644 --- a/nova/core/roles/connection/tasks/vsphere.yml +++ b/nova/core/roles/connection/tasks/vsphere.yml @@ -30,10 +30,9 @@ - name: Setting {{ detect_dhcp.instance.guest.ipAddress }} IP for connection from DHCP... ansible.builtin.set_fact: - ansible_host: "{{ detect_dhcp.instance.guest.ipAddress }}" + connection_address: "{{ detect_dhcp.instance.guest.ipAddress }}" - name: Setting address for connection... - when: not connection_mode_dhcp block: - name: Setting {{ connection_ip }} IP for connection from local inventory... # Calculated connection address when using local inventory ansible.builtin.set_fact: