Conditionally look up the vault directory
This commit is contained in:
parent
fef4814a15
commit
f1cefadfd5
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: Load all deployment variables
|
- name: Load unencrypted deployment variables
|
||||||
no_log: true
|
no_log: true
|
||||||
include_vars:
|
include_vars:
|
||||||
ignore_unknown_extensions: true
|
ignore_unknown_extensions: true
|
||||||
@ -8,6 +8,20 @@
|
|||||||
- yml
|
- yml
|
||||||
- yaml
|
- yaml
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ plugin_config_root }}"
|
- "{{ plugin_config_root }}" # vars.yml system variables
|
||||||
- "{{ app_config_root }}/vault"
|
- "{{ app_config_root }}" # config.yml end-user variables
|
||||||
- "{{ app_config_root }}"
|
|
||||||
|
- name: Check if a vault directory exists
|
||||||
|
stat:
|
||||||
|
path: "{{ app_config_root }}/vault"
|
||||||
|
register: vault_dir
|
||||||
|
|
||||||
|
- name: Load all deployment variables
|
||||||
|
no_log: true
|
||||||
|
when: vault_dir.stat.exists
|
||||||
|
include_vars:
|
||||||
|
ignore_unknown_extensions: true
|
||||||
|
dir: "{{ app_config_root }}/vault"
|
||||||
|
extensions:
|
||||||
|
- yml
|
||||||
|
- yaml
|
||||||
|
Reference in New Issue
Block a user