feat(variables): fix listener not passing correct syntax
This commit is contained in:
parent
2e308f3e23
commit
27df88ae09
@ -5,12 +5,12 @@
|
|||||||
gather_facts: true
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: Debug
|
- name: "debug"
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "{{ hashi_vault_configuration.listener }}"
|
msg: "{{ hashi_vault_configuration.listener }}"
|
||||||
|
|
||||||
- name: "Vault"
|
- name: "Vault"
|
||||||
when: enable_vault | bool
|
when: enable_vault | bool
|
||||||
|
when: "'vault_servers' in group_names"
|
||||||
tags:
|
tags:
|
||||||
- vault
|
- vault
|
||||||
block:
|
block:
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# General options ########
|
# General options ########
|
||||||
##########################
|
##########################
|
||||||
|
|
||||||
enable_vault: "no"
|
enable_vault: "yes"
|
||||||
enable_consul: "yes"
|
enable_consul: "yes"
|
||||||
enable_nomad: "yes"
|
enable_nomad: "yes"
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ vault_storage_configuration:
|
|||||||
################
|
################
|
||||||
# vault listener
|
# vault listener
|
||||||
################
|
################
|
||||||
vault_enable_tls: true
|
vault_enable_tls: false
|
||||||
vault_listener_configuration:
|
vault_listener_configuration:
|
||||||
tcp:
|
tcp:
|
||||||
address: "0.0.0.0:8200"
|
address: "0.0.0.0:8200"
|
||||||
@ -139,7 +139,7 @@ hashi_vault_configuration:
|
|||||||
ui: true
|
ui: true
|
||||||
disable_mlock: false
|
disable_mlock: false
|
||||||
disable_cache: false
|
disable_cache: false
|
||||||
listener: "{{ vault_listener_configuration.tcp
|
listener: "{{ vault_listener_configuration
|
||||||
| combine((vault_enable_tls | bool) | ternary(vault_tls_listener_configuration.tcp, {}))
|
| combine((vault_enable_tls | bool) | ternary(vault_tls_listener_configuration, {}))
|
||||||
| combine(vault_extra_listener_configuration.tcp | default({})) }}"
|
| combine(vault_extra_listener_configuration | default({})) }}"
|
||||||
storage: "{{ vault_storage_configuration }}"
|
storage: "{{ vault_storage_configuration }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user