2022-11-10 22:47:17 +01:00
|
|
|
---
|
|
|
|
- name: Configure Etebase
|
|
|
|
become: true
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: "templates/etebase-server.ini.j2"
|
|
|
|
dest: "{{ etebase__user_home }}/etebase_{{ etebase_version_target }}/etebase-server.ini"
|
|
|
|
mode: '0640'
|
|
|
|
group: "{{ etebase__group }}"
|
|
|
|
owner: "{{ etebase__user }}"
|
2022-11-12 16:25:43 +01:00
|
|
|
register: _etebase_config
|
2022-11-10 22:47:17 +01:00
|
|
|
|
2022-11-12 15:47:35 +01:00
|
|
|
- name: "Create static data directorys"
|
2022-11-10 22:47:17 +01:00
|
|
|
become: true
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
group: "{{ etebase__group }}"
|
|
|
|
owner: "{{ etebase__user }}"
|
|
|
|
recurse: true
|
2022-11-12 21:04:29 +01:00
|
|
|
mode: 'u=rwX,g=rX,o=rX'
|
2022-11-10 22:47:17 +01:00
|
|
|
with_items:
|
|
|
|
- "{{ etebase__global_static_root }}"
|
2022-11-12 21:04:29 +01:00
|
|
|
|
2022-11-14 12:37:00 +01:00
|
|
|
- name: "Create media data directorys"
|
2022-11-12 21:04:29 +01:00
|
|
|
become: true
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
group: "{{ etebase__group }}"
|
|
|
|
owner: "{{ etebase__user }}"
|
|
|
|
recurse: true
|
|
|
|
mode: 'u=rwX,g=rX,o='
|
|
|
|
with_items:
|
2022-11-10 22:47:17 +01:00
|
|
|
- "{{ etebase__global_media_root }}"
|
2022-11-12 15:47:35 +01:00
|
|
|
- "{{ etebase__secrets_dir }}"
|