Fix access for db.type
This commit is contained in:
parent
ceffb97230
commit
cbeb1c42f3
@ -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] }}"
|
||||
|
Reference in New Issue
Block a user