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