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

runmigration

This commit is contained in:
L3D 2022-11-12 16:25:43 +01:00
parent 000bf1fad4
commit 11d7a3fa66
Signed by: l3d
GPG key ID: CD08445BFF4313D1
5 changed files with 13 additions and 1 deletions

View file

@ -7,6 +7,7 @@
mode: '0640'
group: "{{ etebase__group }}"
owner: "{{ etebase__user }}"
register: _etebase_config
- name: "Create static data directorys"

View file

@ -11,6 +11,7 @@
umask: "0027"
update: false
version: "{{ etebase_version_target }}"
register: _etebase_download
- name: Fix venv File owner/group
become: true

View file

@ -17,3 +17,6 @@
- name: Create Etebase Config
ansible.builtin.include_tasks: configure.yml
- name: Run ./manage.py migrate
ansible.builtin.include_tasks: migrate.yml

7
tasks/migrate.yml Normal file
View file

@ -0,0 +1,7 @@
---
- 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

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'
# versionscheck
playbook_version_number: 04 # should be a integer
playbook_version_number: 5 # should be a integer
playbook_version_path: 'role-etebase'