Fix access for db.type

This commit is contained in:
Luke Murphy 2020-04-13 15:21:03 +02:00
parent ceffb97230
commit cbeb1c42f3
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 6 additions and 6 deletions

View File

@ -8,26 +8,26 @@
mount_map:
mariadb: /var/lib/mysql
- name: "Create {{ db_type }} database"
- name: "Create {{ db.type }} database"
no_log: true
shell: "
dokku
{{ db_type }}:create
{{ db.type }}:create
{{ app }}
--password {{ db_passwd }}
--root-password {{ root_db_passwd }}
"
args:
creates: "/var/lib/dokku/services/{{ db_type }}/{{ app }}"
creates: "/var/lib/dokku/services/{{ db.type }}/{{ app }}"
- name: Link mariadb database to application
dokku_service_link:
app: "{{ app }}"
name: "{{ app }}"
service: "{{ db_type }}"
service: "{{ db.type }}"
- name: "Specify {{ db_type }} volume mounts"
- name: "Specify {{ db.type }} volume mounts"
dokku_storage:
app: "{{ app }}"
mounts:
- "/var/lib/dokku/services/{{ db_type }}/{{ app }}:{{ mount_map[db_type] }}"
- "/var/lib/dokku/services/{{ db.type }}/{{ app }}:{{ mount_map[db.type] }}"