feat(variables): fix listener not passing correct syntax

This commit is contained in:
Bertrand Lanson 2024-01-01 21:16:44 +01:00
parent 2e308f3e23
commit 27df88ae09
2 changed files with 7 additions and 7 deletions

View File

@ -5,12 +5,12 @@
gather_facts: true
become: true
tasks:
- name: Debug
- name: "debug"
ansible.builtin.debug:
msg: "{{ hashi_vault_configuration.listener }}"
- name: "Vault"
when: enable_vault | bool
when: "'vault_servers' in group_names"
tags:
- vault
block:

View File

@ -3,7 +3,7 @@
# General options ########
##########################
enable_vault: "no"
enable_vault: "yes"
enable_consul: "yes"
enable_nomad: "yes"
@ -99,7 +99,7 @@ vault_storage_configuration:
################
# vault listener
################
vault_enable_tls: true
vault_enable_tls: false
vault_listener_configuration:
tcp:
address: "0.0.0.0:8200"
@ -139,7 +139,7 @@ hashi_vault_configuration:
ui: true
disable_mlock: false
disable_cache: false
listener: "{{ vault_listener_configuration.tcp
| combine((vault_enable_tls | bool) | ternary(vault_tls_listener_configuration.tcp, {}))
| combine(vault_extra_listener_configuration.tcp | default({})) }}"
listener: "{{ vault_listener_configuration
| combine((vault_enable_tls | bool) | ternary(vault_tls_listener_configuration, {}))
| combine(vault_extra_listener_configuration | default({})) }}"
storage: "{{ vault_storage_configuration }}"