Fiddle with database vars wiring

This commit is contained in:
Luke Murphy
2020-04-13 15:19:06 +02:00
parent 4d3d1641f6
commit ceffb97230
3 changed files with 6 additions and 7 deletions

View File

@ -3,9 +3,8 @@
- name: Run database setup tasks
when: db is defined
block:
- name: Setup preparatory facts
- name: Setup database facts
set_fact:
db_type: "{{ db.type }}"
mount_map:
mariadb: /var/lib/mysql

View File

@ -4,6 +4,6 @@
# already (due to the order of the tasks we define for our deployment steps)
- name: Export variable placeholders
set_fact:
dokku_db_addr: ""
dokku_db_user: ""
dokku_mariadb_db_addr: "dokku-mariadb-{{ app }}"
dokku_mariadb_db_user: "mariadb"
dokku_hostname: "{{ lookup('file', '/home/dokku/HOSTNAME') }}"