This repository has been archived on 2020-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
dokku-ansible-deploy/plays/pre_deploy.yml

31 lines
944 B
YAML
Raw Normal View History

2020-04-13 09:42:33 +00:00
---
- hosts: all
gather_facts: false
tasks:
2020-04-13 13:02:55 +00:00
- name: Include prepare tasks
include: ./lib/prepare.yml
- name: Include vars tasks
include: ./lib/vars.yml
2020-04-13 13:06:18 +00:00
# Note(decentral1se): internal debugging. Please `debug: true` in the
# /var/lib/dokku/data/deploy.d/vars.yml file to activate a debug vars dump
- name: Include debug tasks
include: ./lib/debug.yml
2020-04-13 17:03:43 +00:00
when: debug is defined
2020-04-13 13:06:18 +00:00
2020-04-13 13:02:55 +00:00
- name: Include domain tasks
include: ./lib/domain.yml
# Note(decentral1se): in order to iterate through the end-user defined `db`
# stanza in the config.yml, we need to pass them into the include / block
# using `with_items` because Ansible decides that is the only way we can do
# that
2020-04-13 13:02:55 +00:00
- name: Include database tasks
include: ./lib/database.yml datastore={{ item }}
2020-04-13 13:57:35 +00:00
with_items: "{{ db }}"
when: db is defined
2020-04-13 13:02:55 +00:00
- name: Include env tasks
include: ./lib/env.yml