Add dirs plays to pre-deploy
This commit is contained in:
parent
c86da9ca00
commit
96489e40db
10
plays/predeploy/lib/dirs.yml
Normal file
10
plays/predeploy/lib/dirs.yml
Normal 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
|
@ -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
|
||||
|
Reference in New Issue
Block a user