Try to use the register trick here too
This commit is contained in:
parent
ae7740fce4
commit
8bfff645e8
@ -24,6 +24,7 @@
|
|||||||
when: config_yml.stat.exists
|
when: config_yml.stat.exists
|
||||||
include_vars:
|
include_vars:
|
||||||
file: "{{ app_config_root }}/config.yml"
|
file: "{{ app_config_root }}/config.yml"
|
||||||
|
register: config_include
|
||||||
|
|
||||||
- name: Check if an application vault directory exists
|
- name: Check if an application vault directory exists
|
||||||
stat:
|
stat:
|
||||||
@ -44,11 +45,11 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
config:
|
config:
|
||||||
{
|
{
|
||||||
"vars": "{{ lookup('vars', 'hostvars.vars', default=[]) }}",
|
"vars": "{{ config_include.ansible_facts.vars | default([]) }}",
|
||||||
"db": "{{ lookup('vars', 'hostvars.db', default=[]) }}",
|
"db": "{{ config_include.ansible_facts.db | default([]) }}",
|
||||||
"env": "{{ lookup('vars', 'hostvars.env', default=[]) }}",
|
"env": "{{ config_include.ansible_facts.env | default([]) }}",
|
||||||
"volumes": "{{ lookup('vars', 'hostvars.volumes', default=[]) }}",
|
"volumes": "{{ config_include.ansible_facts.volumes | default([]) }}",
|
||||||
"templates": "{{ lookup('vars', 'hostvars.templates', default=[]) }}",
|
"templates": "{{ config_include.ansible_facts.templates | default([]) }}",
|
||||||
"vault": "{{ vault_include.ansible_facts }}",
|
"vault": "{{ vault_include.ansible_facts }}",
|
||||||
}
|
}
|
||||||
dokku:
|
dokku:
|
||||||
|
Reference in New Issue
Block a user