1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_etebase.git synced 2024-08-16 10:19:52 +02:00

Improve permissions and sqlite path

This commit is contained in:
L3D 2022-11-12 18:10:49 +01:00
parent 86c76fc37c
commit 4f2a52effa
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 16 additions and 3 deletions

View file

@ -11,4 +11,17 @@
ansible.builtin.command:
chdir: "{{ etebase__user_home }}/etebase_{{ etebase_version_target }}"
cmd: "{{ etebase__venv }}/bin/python3 ./manage.py collectstatic"
changed_when: _etebase_download.changed or _etebase_config.changed
creates: "{{ etebase__global_static_root }}/admin"
- name: "Fix File Permissions for static data directorys"
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:
- "{{ etebase__global_static_root }}"
- "{{ etebase__secrets_dir }}"

View file

@ -22,7 +22,7 @@ allowed_host1 = {{ etebase__allowed_hosts_allowed_host1 }}
[database]
engine = {{ etebase__database_engine }}
name = db.sqlite3
name = {{ etebase__database_name }}
{{ etebase__database_extra }}
[database-options]

View file

@ -3,5 +3,5 @@ etebase__repo: 'https://github.com/etesync/server.git'
etebase__repo_api: 'https://api.github.com/repos/etesync/server/tags'
# versionscheck
playbook_version_number: 5 # should be a integer
playbook_version_number: 6 # should be a integer
playbook_version_path: 'role-etebase'