ansible-edda/playbooks/roles/system/directories/tasks/main.yml

37 lines
915 B
YAML

---
- name: "create services etc directory"
ansible.builtin.file:
path: "{{ system_etc_root_directory }}"
state: "directory"
mode: 0755
when:
system_directories_create_etc
- block:
- name: "create services var directory"
ansible.builtin.file:
path: "{{ system_var_root_directory }}"
state: "directory"
mode: 0755
- name: "create containers root directory"
ansible.builtin.file:
path: "{{ system_var_containers_directory }}"
state: "directory"
mode: 0755
- name: "create data root directory"
ansible.builtin.file:
path: "{{ system_var_data_directory }}"
state: "directory"
mode: 0755
- name: "create home root directory"
ansible.builtin.file:
path: "{{ system_var_home_directory }}"
state: "directory"
mode: 0755
when:
system_directories_create_var