WIP breaking change to show vars
This commit is contained in:
parent
7144951661
commit
48a7781423
@ -24,7 +24,6 @@
|
||||
when: config_yml.stat.exists
|
||||
include_vars:
|
||||
file: "{{ app_config_root }}/config.yml"
|
||||
name: "config"
|
||||
|
||||
- name: Check if an application vault directory exists
|
||||
stat:
|
||||
@ -37,7 +36,6 @@
|
||||
include_vars:
|
||||
ignore_unknown_extensions: true
|
||||
dir: "{{ app_config_root }}/vault"
|
||||
name: "vault"
|
||||
extensions:
|
||||
- yml
|
||||
|
||||
@ -51,26 +49,9 @@
|
||||
hostname: "{{ lookup('file', '/home/dokku/HOSTNAME') }}",
|
||||
}
|
||||
|
||||
- name: Create the vault variable dictionary
|
||||
set_fact:
|
||||
vault: "{{ vars.vault }}"
|
||||
|
||||
- name: Create the config variable dictionary
|
||||
set_fact:
|
||||
config:
|
||||
{
|
||||
"vars": "{{ vars.config.vars | default([]) }}",
|
||||
"db": "{{ vars.config.db | default([]) }}",
|
||||
"env": "{{ vars.config.env | default([]) }}",
|
||||
"volumes": "{{ vars.config.volumes | default([]) }}",
|
||||
"templates": "{{ vars.config.templates | default([]) }}",
|
||||
}
|
||||
|
||||
- name: Debug variable dictionaries
|
||||
debug:
|
||||
msg: "{{ item }}"
|
||||
with_items:
|
||||
- "{{ config }}"
|
||||
- "{{ dokku }}"
|
||||
- "{{ vars }}"
|
||||
when: debug is defined and debug == true
|
||||
|
Reference in New Issue
Block a user