Fiddle with database vars wiring

This commit is contained in:
Luke Murphy 2020-04-13 15:19:06 +02:00
parent 4d3d1641f6
commit ceffb97230
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
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') }}"

View File

@ -16,8 +16,8 @@
- name: Include certs tasks
include: ./lib/certs.yml
- name: Include proxy tasks
include: ./lib/proxy.yml
- name: Include https tasks
include: ./lib/https.yml
- name: Include proxy tasks
include: ./lib/proxy.yml