You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
---
|
|
|
|
- name: Create directories
|
|
file: path={{ item.dir }} state=directory owner={{ item.owner | default(omit) }} group={{ item.group | default(omit) }} mode={{ item.mode | default(omit) }}
|
|
with_items:
|
|
- dir: "{{ seafile_root_dir }}/tmp"
|
|
mode: 700
|
|
- dir: "{{ seafile_root_dir }}/meta"
|
|
mode: 700
|
|
- dir: "{{ seafile_root_dir }}/archives"
|
|
mode: 700
|
|
- dir: "{{ seafile_root_dir }}"
|
|
- dir: "{{ seafile_root_dir }}/fuse"
|
|
- dir: "{{ seafile_root_dir }}/seafile-server"
|
|
- dir: "{{ seafile_root_dir }}/conf"
|
|
- dir: "{{ seafile_root_dir }}/ccnet"
|
|
- dir: "{{ seafile_root_dir }}/logs"
|
|
- dir: "{{ seafile_root_dir }}/pids"
|
|
- dir: "{{ seafile_data_dir }}"
|
|
- dir: "{{ seafile_data_dir }}/thumbnails"
|
|
- dir: "{{ seafile_data_dir }}/seahub"
|
|
- dir: "{{ seafile_data_dir }}/seahub/custom"
|
|
owner: "{{ seafile_user }}"
|
|
group: "{{ seafile_user }}"
|
|
- dir: "{{ seafile_data_dir }}/seahub/cache"
|
|
owner: "{{ seafile_user }}"
|
|
group: "{{ seafile_user }}"
|
|
- dir: "{{ seafile_data_dir }}/seahub/avatars"
|
|
owner: "{{ seafile_user }}"
|
|
group: "{{ seafile_user }}"
|
|
- dir: "{{ seafile_data_dir }}/pro"
|
|
- dir: "{{ seafile_root_dir }}/backup"
|
|
mode: 700
|
|
owner: root
|
|
group: root
|
|
ignore_errors: True # So we can run when the fuse mount point is active
|
|
tags: seafile
|
|
|