Drop register and use vars only
Ansible strikes again - https://github.com/ansible/ansible/issues/21088 - https://github.com/ansible/ansible/issues/36024
This commit is contained in:
parent
995f06d055
commit
076334ae23
@ -25,7 +25,6 @@
|
|||||||
include_vars:
|
include_vars:
|
||||||
file: "{{ app_config_root }}/config.yml"
|
file: "{{ app_config_root }}/config.yml"
|
||||||
name: "config"
|
name: "config"
|
||||||
register: config_include
|
|
||||||
|
|
||||||
- name: Check if an application vault directory exists
|
- name: Check if an application vault directory exists
|
||||||
stat:
|
stat:
|
||||||
@ -41,7 +40,6 @@
|
|||||||
name: "vault"
|
name: "vault"
|
||||||
extensions:
|
extensions:
|
||||||
- yml
|
- yml
|
||||||
register: vault_include
|
|
||||||
|
|
||||||
- name: Create the dokku variable dictionary
|
- name: Create the dokku variable dictionary
|
||||||
set_fact:
|
set_fact:
|
||||||
@ -55,17 +53,17 @@
|
|||||||
|
|
||||||
- name: Create the vault variable dictionary
|
- name: Create the vault variable dictionary
|
||||||
set_fact:
|
set_fact:
|
||||||
vault: "{{ vault_include.ansible_facts.vault }}"
|
vault: "{{ vars.vault }}"
|
||||||
|
|
||||||
- name: Create the config variable dictionary
|
- name: Create the config variable dictionary
|
||||||
set_fact:
|
set_fact:
|
||||||
config:
|
config:
|
||||||
{
|
{
|
||||||
"vars": "{{ config_include.ansible_facts.config.vars | default([]) }}",
|
"vars": "{{ vars.config.vars | default([]) }}",
|
||||||
"db": "{{ config_include.ansible_facts.config.db | default([]) }}",
|
"db": "{{ vars.config.db | default([]) }}",
|
||||||
"env": "{{ config_include.ansible_facts.config.env | default([]) }}",
|
"env": "{{ vars.config.env | default([]) }}",
|
||||||
"volumes": "{{ config_include.ansible_facts.config.volumes | default([]) }}",
|
"volumes": "{{ vars.config.volumes | default([]) }}",
|
||||||
"templates": "{{ config_include.ansible_facts.config.templates | default([]) }}",
|
"templates": "{{ vars.config.templates | default([]) }}",
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Debug variable dictionaries
|
- name: Debug variable dictionaries
|
||||||
|
Reference in New Issue
Block a user