summaryrefslogtreecommitdiffstats
path: root/roles/ands_kaas/tasks/file.yml
blob: 9a36e74d532aea1b7746c1688c89e2b187002f24 (plain)
1
2
3
4
5
6
7
8
9
---
- name: "Setting up files in {{ path }}"
  file: 
    path: "{{ path }}" 
    recurse: "{{ file.recurse | default(true) }}" 
    mode: "{{ file.mode | default( ((file.state | default('directory')) == 'directory') | ternary('0755', '0644') ) }}"
    owner: "{{ file.owner | default(kaas_project_config.file_owner) | default(kaas_default_file_owner) }}" 
    group: "{{ file.group | default(kaas_project_config.file_group) | default(kaas_default_file_group) }}"
    state: "{{ file.state | default('directory') }}"