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

Merge pull request #1 from roles-ansible/debug

improve role by adding debugging options
This commit is contained in:
L3D 2022-11-12 23:53:46 +01:00 committed by GitHub
commit 1657361974
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 1 deletions

View file

@ -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.

View file

@ -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'