--- - name: Run database setup tasks block: - name: Set database facts set_fact: mount_map: mariadb: /var/lib/mysql - name: "Create {{ store.type }} database" no_log: true shell: " dokku {{ store.type }}:create {{ app }} --password {{ store.passwd }} --root-password {{ store.root_passwd }} " args: creates: "/var/lib/dokku/services/{{ store.type }}/{{ app }}" - name: "Link {{ store.type }} database to application" dokku_service_link: app: "{{ app }}" name: "{{ app }}" service: "{{ store.type }}" - name: "Specify {{ store.type }} volume mounts" dokku_storage: app: "{{ app }}" mounts: - "/var/lib/dokku/services/{{ store.type }}/{{ app }}:{{ mount_map[store.type] }}"