Try to use the register trick here too

This commit is contained in:
Luke Murphy 2020-04-14 14:09:22 +02:00
parent ae7740fce4
commit 8bfff645e8
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -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: