matrix-docker-compose/ansible/roles/synapse-base/tasks/main.yml
2024-02-19 12:27:08 +09:00

34 lines
734 B
YAML

- name: Mount data NFS volume
ansible.posix.mount:
src: "{{ item.src }}"
path: "{{ item.path }}"
state: mounted
fstype: nfs
loop: "{{ nfs.mounts }}"
- name: Create docker-compose project directories
ansible.builtin.file:
path: /mnt/synapse_data
state: directory
mode: '0700'
owner: 991
tags:
- directory
- 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 }}"