Add dirs plays to pre-deploy

This commit is contained in:
Luke Murphy 2020-04-16 12:20:11 +02:00
parent c86da9ca00
commit 96489e40db
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,10 @@
---
- name: Create application directories on the system level
become: true
file:
path: "{{ item.path }}"
state: "{{ item.type }}"
owner: "{{ item.owner | default('dokku') }}"
group: "{{ item.group | default('dokku') }}"
with_items: "{{ config.dirs }}"
when: config.dirs

View File

@ -5,6 +5,7 @@
- include: ../commonlib/vars.yml
- include: ./lib/domain.yml
- include: ./lib/database.yml
- include: ./lib/dirs.yml
- include: ./lib/hooks.yml
- include: ./lib/files.yml
- include: ./lib/templates.yml