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

41 lines
984 B
YAML
Raw Normal View History

---
2023-09-30 00:45:24 +02:00
- block:
- name: "create etc directory"
ansible.builtin.file:
path: "{{ system_etc_root_directory }}"
state: "directory"
mode: 0755
- name: "create home root directory"
ansible.builtin.file:
path: "{{ system_etc_home_directory }}"
state: "directory"
mode: 0755
2023-10-15 22:59:33 +02:00
when:
system_etc_home_directory is defined
2023-09-30 00:45:24 +02:00
2023-08-13 23:54:18 +02:00
when:
system_directories_create_etc
2023-07-23 00:37:19 +02:00
2023-08-13 23:54:18 +02:00
- block:
2023-09-30 00:45:24 +02:00
- name: "create var directory"
2023-08-13 23:54:18 +02:00
ansible.builtin.file:
path: "{{ system_var_root_directory }}"
state: "directory"
mode: 0755
2023-08-13 23:54:18 +02:00
- name: "create containers root directory"
ansible.builtin.file:
path: "{{ system_var_containers_directory }}"
state: "directory"
mode: 0755
2023-08-13 23:54:18 +02:00
- name: "create data root directory"
ansible.builtin.file:
path: "{{ system_var_data_directory }}"
state: "directory"
mode: 0755
2023-08-13 23:54:18 +02:00
when:
system_directories_create_var