mirror of
https://github.com/roles-ansible/ansible_role_etebase.git
synced 2024-08-16 10:19:52 +02:00
improve role by adding debugging options
This commit is contained in:
parent
e8570dcd3b
commit
d496405f66
2 changed files with 21 additions and 1 deletions
|
@ -5,6 +5,12 @@
|
||||||
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
|
||||||
|
register: _etebase_migrate
|
||||||
|
|
||||||
|
- name: Print output of python3 manage.py migrate
|
||||||
|
ansible.builtin.debug:
|
||||||
|
verbosity: 1
|
||||||
|
msg: "{{ _etebase_migrate.result }}"
|
||||||
|
|
||||||
- name: Create static files
|
- name: Create static files
|
||||||
become: true
|
become: true
|
||||||
|
@ -12,6 +18,12 @@
|
||||||
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"
|
||||||
creates: "{{ etebase__global_static_root }}/admin"
|
creates: "{{ etebase__global_static_root }}/admin"
|
||||||
|
register: _etebase_collectstatic
|
||||||
|
|
||||||
|
- name: Print output of python3 manage.py collectstatic
|
||||||
|
ansible.builtin.debug:
|
||||||
|
verbosity: 1
|
||||||
|
msg: "{{ _etebase_collectstatic.result }}"
|
||||||
|
|
||||||
- name: "Fix File Permissions for secret directory"
|
- name: "Fix File Permissions for secret directory"
|
||||||
become: true
|
become: true
|
||||||
|
@ -36,3 +48,11 @@
|
||||||
mode: 'u=rwX,g=rX,o=rX'
|
mode: 'u=rwX,g=rX,o=rX'
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ etebase__global_static_root }}"
|
- "{{ etebase__global_static_root }}"
|
||||||
|
|
||||||
|
- name: Print hint how to create admin User
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: |
|
||||||
|
To create a admin user, run
|
||||||
|
'cd {{ etebase__user_home }}/etebase_{{ etebase_version_target }};
|
||||||
|
{{ etebase__venv }}/bin/python3 ./manage.py createsuperuser'
|
||||||
|
as priviledged user.
|
||||||
|
|
|
@ -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: 7 # should be a integer
|
playbook_version_number: 8 # should be a integer
|
||||||
playbook_version_path: 'role-etebase'
|
playbook_version_path: 'role-etebase'
|
||||||
|
|
Loading…
Reference in a new issue