This repository has been archived on 2020-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
dokku-ansible-deploy/plays/lib/prepare.yml

18 lines
491 B
YAML
Raw Normal View History

2020-04-13 13:02:55 +00:00
---
- 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"
2020-04-13 17:17:22 +00:00
- name: Export internal variable placeholders
2020-04-13 13:02:55 +00:00
set_fact:
2020-04-13 13:19:06 +00:00
dokku_mariadb_db_addr: "dokku-mariadb-{{ app }}"
dokku_mariadb_db_user: "mariadb"
2020-04-13 13:02:55 +00:00
dokku_hostname: "{{ lookup('file', '/home/dokku/HOSTNAME') }}"