From 356aaf02a7192d2fbd83f25dfa3a9739a07c4716 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Thu, 29 Jan 2026 18:39:36 +0100 Subject: [PATCH] Pre-Evaluate nova_console_proxy_types Inside of the haproxy_service_config playbook we attempt to resolve variables by mapping extract to the service_group. With that nova_console_proxy_types also contains simmilar mapping, which is considred as unsafe operation, and hostvars are not available anymore in the context inside of another map. Thus, we need to resolve the nova_console_proxy_types in advance, before passing it to the haproxy_service_config Change-Id: I48313c62e4e4c0539a6adc10b6c576829169c8c5 Signed-off-by: Dmitriy Rabotyagov --- playbooks/nova.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/playbooks/nova.yml b/playbooks/nova.yml index 9069f631..613bc9ba 100644 --- a/playbooks/nova.yml +++ b/playbooks/nova.yml @@ -32,6 +32,12 @@ filter: "{{ nova_gather_filter | default('ansible_processor*') }}" when: osa_gather_facts | default(True) + - name: Pre-evaluate nova_console_proxy_types fact + ansible.builtin.set_fact: + nova_console_proxy_types: "{{ nova_console_proxy_types }}" + tags: + - haproxy-service-config + - name: "Config haproxy service" ansible.builtin.import_playbook: openstack.osa.haproxy_service_config vars: