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

Update venv and secret paths

This commit is contained in:
L3D 2022-11-12 15:47:35 +01:00
parent 51b7b3aa68
commit 000bf1fad4
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 6 additions and 4 deletions

View file

@ -4,17 +4,18 @@ etebase__group: 'etebase'
etebase__user: 'etebase' etebase__user: 'etebase'
etebase__user_home: '/var/lib/etebase' etebase__user_home: '/var/lib/etebase'
etebase__shell: '/bin/false' etebase__shell: '/bin/false'
etebase__venv: '/tmp/venv' etebase__venv: "{{ etebase__user_home }}/venv"
# package state # package state
etebase__package_state: 'present' etebase__package_state: 'present'
# etebase version # etebase version
etebase__version: 'latest' etebase__version: 'latest'
etebase__secrets_dir: "{{ etebase__user_home }}/secrets"
# etebase config options # etebase config options
# -> global # -> global
etebase__global_secret_file: 'secret.txt' etebase__global_secret_file: '{{ etebase__secrets_dir }}/secret.txt'
etebase__global_debug: false etebase__global_debug: false
etebase__global_static_root: "{{ etebase__user_home }}/static_root" etebase__global_static_root: "{{ etebase__user_home }}/static_root"
etebase__global_media_root: "{{ etebase__user_home }}/media_root" etebase__global_media_root: "{{ etebase__user_home }}/media_root"
@ -26,7 +27,7 @@ etebase__allowed_hosts_extra: ''
# -> Database # -> Database
etebase__database_engine: 'django.db.backends.sqlite3' etebase__database_engine: 'django.db.backends.sqlite3'
etebase__database_name: 'etebase.db.sqlite3' etebase__database_name: "{{ etebase__secrets_dir }}/etebase.db.sqlite3"
etebase__database_extra: '' etebase__database_extra: ''
etebase__database_options_extra: '' etebase__database_options_extra: ''

View file

@ -9,7 +9,7 @@
owner: "{{ etebase__user }}" owner: "{{ etebase__user }}"
- name: "Create istatic data directory" - name: "Create static data directorys"
become: true become: true
ansible.builtin.file: ansible.builtin.file:
path: "{{ item }}" path: "{{ item }}"
@ -21,3 +21,4 @@
with_items: with_items:
- "{{ etebase__global_static_root }}" - "{{ etebase__global_static_root }}"
- "{{ etebase__global_media_root }}" - "{{ etebase__global_media_root }}"
- "{{ etebase__secrets_dir }}"