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