Remove item from name and add mongo to mount map
This commit is contained in:
parent
73771e63cb
commit
3f0d5c41d9
@ -4,9 +4,10 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
mount_map:
|
mount_map:
|
||||||
mariadb: /var/lib/mysql
|
mariadb: /var/lib/mysql
|
||||||
|
mongo: /var/lib/mongo
|
||||||
when: config.db
|
when: config.db
|
||||||
|
|
||||||
- name: "Create {{ item.type }} database"
|
- name: Create database
|
||||||
no_log: true
|
no_log: true
|
||||||
shell: "
|
shell: "
|
||||||
dokku
|
dokku
|
||||||
@ -20,7 +21,7 @@
|
|||||||
with_items: "{{ config.db }}"
|
with_items: "{{ config.db }}"
|
||||||
when: config.db
|
when: config.db
|
||||||
|
|
||||||
- name: "Link {{ item.type }} database to application"
|
- name: Link database to application
|
||||||
no_log: true
|
no_log: true
|
||||||
dokku_service_link:
|
dokku_service_link:
|
||||||
app: "{{ dokku.app }}"
|
app: "{{ dokku.app }}"
|
||||||
@ -29,7 +30,7 @@
|
|||||||
with_items: "{{ config.db }}"
|
with_items: "{{ config.db }}"
|
||||||
when: config.db
|
when: config.db
|
||||||
|
|
||||||
- name: "Specify {{ item.type }} volume mounts"
|
- name: Specify volume mounts
|
||||||
no_log: true
|
no_log: true
|
||||||
dokku_storage:
|
dokku_storage:
|
||||||
app: "{{ dokku.app }}"
|
app: "{{ dokku.app }}"
|
||||||
|
Reference in New Issue
Block a user