Try import_vars

This commit is contained in:
Luke Murphy 2020-04-14 14:24:29 +02:00
parent ff3ecb1855
commit c5ad341f31
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -11,7 +11,7 @@
- name: Load internal system variables - name: Load internal system variables
no_log: true no_log: true
when: vars_yml.stat.exists when: vars_yml.stat.exists
include_vars: import_vars:
file: "{{ plugin_config_root }}/vars.yml" file: "{{ plugin_config_root }}/vars.yml"
- name: Check if the application config file exists - name: Check if the application config file exists
@ -22,7 +22,7 @@
- name: Load unencrypted configuration variables - name: Load unencrypted configuration variables
no_log: true no_log: true
when: config_yml.stat.exists when: config_yml.stat.exists
include_vars: import_vars:
file: "{{ app_config_root }}/config.yml" file: "{{ app_config_root }}/config.yml"
register: config_include register: config_include
@ -34,7 +34,7 @@
- name: Load application encrypted vault variables - name: Load application encrypted vault variables
no_log: true no_log: true
when: vault_dir.stat.exists when: vault_dir.stat.exists
include_vars: import_vars:
ignore_unknown_extensions: true ignore_unknown_extensions: true
dir: "{{ app_config_root }}/vault" dir: "{{ app_config_root }}/vault"
extensions: extensions: