Adapt to more scoped config
This commit is contained in:
@ -10,27 +10,27 @@
|
||||
shell: "
|
||||
dokku
|
||||
{{ item.type }}:create
|
||||
{{ app }}
|
||||
{{ dokku.app }}
|
||||
--password {{ item.passwd }}
|
||||
--root-password {{ item.root_passwd }}
|
||||
"
|
||||
args:
|
||||
creates: "/var/lib/dokku/services/{{ item.type }}/{{ app }}"
|
||||
creates: "/var/lib/dokku/services/{{ item.type }}/{{ dokku.app }}"
|
||||
with_items: "{{ db }}"
|
||||
when: db is defined
|
||||
|
||||
- name: "Link {{ item.type }} database to application"
|
||||
dokku_service_link:
|
||||
app: "{{ app }}"
|
||||
name: "{{ app }}"
|
||||
app: "{{ dokku.app }}"
|
||||
name: "{{ dokku.app }}"
|
||||
service: "{{ item.type }}"
|
||||
with_items: "{{ db }}"
|
||||
when: db is defined
|
||||
|
||||
- name: "Specify {{ item.type }} volume mounts"
|
||||
dokku_storage:
|
||||
app: "{{ app }}"
|
||||
app: "{{ dokku.app }}"
|
||||
mounts:
|
||||
- "/var/lib/dokku/services/{{ item.type }}/{{ app }}:{{ mount_map[item.type] }}"
|
||||
- "/var/lib/dokku/services/{{ item.type }}/{{ dokku.app }}:{{ mount_map[item.type] }}"
|
||||
with_items: "{{ db }}"
|
||||
when: db is defined
|
||||
|
Reference in New Issue
Block a user