If the key which we're looking for does not exists, we get an exception.
We can pass an option "vault_ok_if_missing" or set an environment variable "VAULT_OK_IF_MISSING" to true to get an empty value.
Example to get a default value: {{ lookup('vault', '/secret/key', 'value') | default('bla', true) }}
If the key which we're looking for does not exists, we get an exception. We can pass an option "vault_ok_if_missing" or set an environment variable "VAULT_OK_IF_MISSING" to true to get an empty value. Example to get a default value: {{ lookup('vault', '/secret/key', 'value') | default('bla', true) }}