diff --git a/plays/predeploy/lib/dirs.yml b/plays/predeploy/lib/dirs.yml new file mode 100644 index 0000000..033cc7d --- /dev/null +++ b/plays/predeploy/lib/dirs.yml @@ -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 diff --git a/plays/predeploy/predeploy.yml b/plays/predeploy/predeploy.yml index f03a86a..4612ae9 100644 --- a/plays/predeploy/predeploy.yml +++ b/plays/predeploy/predeploy.yml @@ -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