This repository has been archived on 2020-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
2020-04-13 10:49:14 +00:00
|
|
|
---
|
2020-04-13 18:19:14 +00:00
|
|
|
- name: Check if the app config file exists
|
|
|
|
stat:
|
|
|
|
path: "{{ app_config_root }}/config.yml"
|
|
|
|
register: config_yml
|
|
|
|
|
2020-04-13 17:52:52 +00:00
|
|
|
- name: Load unencrypted variables
|
2020-04-13 17:18:29 +00:00
|
|
|
no_log: true
|
2020-04-13 18:19:14 +00:00
|
|
|
when: config_yml.stat.exists
|
2020-04-13 12:04:38 +00:00
|
|
|
include_vars:
|
2020-04-13 18:19:14 +00:00
|
|
|
file: "{{ app_config_root }}/config.yml"
|
2020-04-13 17:47:47 +00:00
|
|
|
|
|
|
|
- name: Check if a vault directory exists
|
|
|
|
stat:
|
|
|
|
path: "{{ app_config_root }}/vault"
|
|
|
|
register: vault_dir
|
|
|
|
|
2020-04-13 17:52:52 +00:00
|
|
|
- name: Load encrypted variables
|
2020-04-13 17:47:47 +00:00
|
|
|
no_log: true
|
|
|
|
when: vault_dir.stat.exists
|
|
|
|
include_vars:
|
|
|
|
ignore_unknown_extensions: true
|
|
|
|
dir: "{{ app_config_root }}/vault"
|
|
|
|
extensions:
|
|
|
|
- yml
|
|
|
|
- yaml
|