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:
parent
11d7a3fa66
commit
86c76fc37c
2 changed files with 10 additions and 0 deletions
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue