Fix access for db.type
This commit is contained in:
parent
ceffb97230
commit
cbeb1c42f3
@ -8,26 +8,26 @@
|
|||||||
mount_map:
|
mount_map:
|
||||||
mariadb: /var/lib/mysql
|
mariadb: /var/lib/mysql
|
||||||
|
|
||||||
- name: "Create {{ db_type }} database"
|
- name: "Create {{ db.type }} database"
|
||||||
no_log: true
|
no_log: true
|
||||||
shell: "
|
shell: "
|
||||||
dokku
|
dokku
|
||||||
{{ db_type }}:create
|
{{ db.type }}:create
|
||||||
{{ app }}
|
{{ app }}
|
||||||
--password {{ db_passwd }}
|
--password {{ db_passwd }}
|
||||||
--root-password {{ root_db_passwd }}
|
--root-password {{ root_db_passwd }}
|
||||||
"
|
"
|
||||||
args:
|
args:
|
||||||
creates: "/var/lib/dokku/services/{{ db_type }}/{{ app }}"
|
creates: "/var/lib/dokku/services/{{ db.type }}/{{ app }}"
|
||||||
|
|
||||||
- name: Link mariadb database to application
|
- name: Link mariadb database to application
|
||||||
dokku_service_link:
|
dokku_service_link:
|
||||||
app: "{{ app }}"
|
app: "{{ app }}"
|
||||||
name: "{{ app }}"
|
name: "{{ app }}"
|
||||||
service: "{{ db_type }}"
|
service: "{{ db.type }}"
|
||||||
|
|
||||||
- name: "Specify {{ db_type }} volume mounts"
|
- name: "Specify {{ db.type }} volume mounts"
|
||||||
dokku_storage:
|
dokku_storage:
|
||||||
app: "{{ app }}"
|
app: "{{ app }}"
|
||||||
mounts:
|
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