Push internal loading back to prepare step

This commit is contained in:
Luke Murphy 2020-04-13 20:21:07 +02:00
parent 91763f13a0
commit 8b7e6a30f8
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,15 @@
---
- name: Check if internal system variables exists
stat:
path: "{{ plugin_config_root }}/vars.yml"
register: vars_yml
- name: Load internal system variables
no_log: true
when: vars_yml.stat.exists
include_vars:
file: "{{ plugin_config_root }}/vars.yml"
- name: Export internal variable placeholders
set_fact:
dokku_mariadb_db_addr: "dokku-mariadb-{{ app }}"

View File

@ -1,15 +1,4 @@
---
- name: Check if internal system variables exists
stat:
path: "{{ plugin_config_root }}/vars.yml"
register: vars_yml
- name: Load internal system variables
no_log: true
when: vars_yml.stat.exists
include_vars:
file: "{{ plugin_config_root }}/vars.yml"
- name: Check if the app config file exists
stat:
path: "{{ app_config_root }}/config.yml"