summaryrefslogtreecommitdiffstats
path: root/roles/ands_kaas/tasks/volume.yml
blob: b82e55f79da7131c6c7cb3c958488113e5d3ddba (plain)
1
2
3
4
5
6
7
8
9
10
11
---
- name: "Configure {{ name }} fact"
  set_fact: "kaas_{{ name }}_path={{ path }}"

- name: "Ensure {{ path }} exists"
  file: 
    path: "{{ path }}" 
    state: "directory" 
    mode: "{{ volume.mode | default(0755) }}" 
    owner: "{{ volume.owner | default(kaas_project_config.file_owner) | default(kaas_default_file_owner) }}" 
    group: "{{ volume.group | default(kaas_project_config.file_group) | default(kaas_default_file_group) }}"