2023-09-27 10:19:46 +00:00
|
|
|
- name: Mount data NFS volume
|
|
|
|
ansible.posix.mount:
|
2024-02-19 03:27:08 +00:00
|
|
|
src: "{{ item.src }}"
|
|
|
|
path: "{{ item.path }}"
|
2023-09-27 10:19:46 +00:00
|
|
|
state: mounted
|
|
|
|
fstype: nfs
|
2024-02-19 03:27:08 +00:00
|
|
|
loop: "{{ nfs.mounts }}"
|
2023-09-27 10:19:46 +00:00
|
|
|
- name: Create docker-compose project directories
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: /mnt/synapse_data
|
|
|
|
state: directory
|
|
|
|
mode: '0700'
|
2023-09-27 11:49:56 +00:00
|
|
|
owner: 991
|
2023-09-27 10:19:46 +00:00
|
|
|
tags:
|
|
|
|
- directory
|
2023-12-04 07:59:22 +00:00
|
|
|
- name: Create logging base directory
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: /mnt/logs/
|
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
|
|
|
owner: "root"
|
|
|
|
tags:
|
|
|
|
- dir
|
|
|
|
- logdir
|
|
|
|
- name: Create logging directory
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: /mnt/logs/{{ item.name }}
|
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
|
|
|
owner: "{{ item.uid }}"
|
|
|
|
tags:
|
|
|
|
- dir
|
|
|
|
- logdir
|
|
|
|
loop: "{{ logs_dirs }}"
|