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

Create static files

This commit is contained in:
L3D 2022-11-12 16:34:21 +01:00
parent 11d7a3fa66
commit 86c76fc37c
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 10 additions and 0 deletions

View file

@ -13,6 +13,9 @@ etebase__package_state: 'present'
etebase__version: 'latest' etebase__version: 'latest'
etebase__secrets_dir: "{{ etebase__user_home }}/secrets" etebase__secrets_dir: "{{ etebase__user_home }}/secrets"
# hosting
etebase__collectstatic: true
# etebase config options # etebase config options
# -> global # -> global
etebase__global_secret_file: '{{ etebase__secrets_dir }}/secret.txt' etebase__global_secret_file: '{{ etebase__secrets_dir }}/secret.txt'

View file

@ -5,3 +5,10 @@
chdir: "{{ etebase__user_home }}/etebase_{{ etebase_version_target }}" chdir: "{{ etebase__user_home }}/etebase_{{ etebase_version_target }}"
cmd: "{{ etebase__venv }}/bin/python3 ./manage.py migrate" cmd: "{{ etebase__venv }}/bin/python3 ./manage.py migrate"
changed_when: _etebase_download.changed or _etebase_config.changed changed_when: _etebase_download.changed or _etebase_config.changed
- name: Create static files
become: true
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