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:
parent
000bf1fad4
commit
11d7a3fa66
5 changed files with 13 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
mode: '0640'
|
||||
group: "{{ etebase__group }}"
|
||||
owner: "{{ etebase__user }}"
|
||||
register: _etebase_config
|
||||
|
||||
|
||||
- name: "Create static data directorys"
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
umask: "0027"
|
||||
update: false
|
||||
version: "{{ etebase_version_target }}"
|
||||
register: _etebase_download
|
||||
|
||||
- name: Fix venv File owner/group
|
||||
become: true
|
||||
|
|
|
@ -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
7
tasks/migrate.yml
Normal 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
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue