mirror of
https://github.com/roles-ansible/ansible_role_etebase.git
synced 2024-08-16 10:19:52 +02:00
27 lines
905 B
YAML
27 lines
905 B
YAML
---
|
|
- name: Run python3 manage.py migrate
|
|
become: true
|
|
ansible.builtin.command:
|
|
chdir: "{{ etebase__user_home }}/etebase_{{ etebase_version_target }}"
|
|
cmd: "{{ etebase__venv }}/bin/python3 ./manage.py migrate"
|
|
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"
|
|
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 }}"
|