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:
parent
86c76fc37c
commit
4f2a52effa
3 changed files with 16 additions and 3 deletions
|
@ -11,4 +11,17 @@
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
chdir: "{{ etebase__user_home }}/etebase_{{ etebase_version_target }}"
|
chdir: "{{ etebase__user_home }}/etebase_{{ etebase_version_target }}"
|
||||||
cmd: "{{ etebase__venv }}/bin/python3 ./manage.py collectstatic"
|
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 }}"
|
||||||
|
|
|
@ -22,7 +22,7 @@ allowed_host1 = {{ etebase__allowed_hosts_allowed_host1 }}
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
engine = {{ etebase__database_engine }}
|
engine = {{ etebase__database_engine }}
|
||||||
name = db.sqlite3
|
name = {{ etebase__database_name }}
|
||||||
{{ etebase__database_extra }}
|
{{ etebase__database_extra }}
|
||||||
|
|
||||||
[database-options]
|
[database-options]
|
||||||
|
|
|
@ -3,5 +3,5 @@ etebase__repo: 'https://github.com/etesync/server.git'
|
||||||
etebase__repo_api: 'https://api.github.com/repos/etesync/server/tags'
|
etebase__repo_api: 'https://api.github.com/repos/etesync/server/tags'
|
||||||
|
|
||||||
# versionscheck
|
# versionscheck
|
||||||
playbook_version_number: 5 # should be a integer
|
playbook_version_number: 6 # should be a integer
|
||||||
playbook_version_path: 'role-etebase'
|
playbook_version_path: 'role-etebase'
|
||||||
|
|
Loading…
Reference in a new issue