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 <dmitriy.rabotyagov@cleura.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user