mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-28 20:42:20 +08:00
Run db migration commands as the taiga user.
This commit is contained in:
@@ -75,6 +75,9 @@
|
||||
### DONE with db stuff
|
||||
|
||||
### NEXT, setup taiga-back from git
|
||||
- user: name=taiga comment="Taiga System Account"
|
||||
tags: taiga
|
||||
|
||||
- file: dest=/srv state=directory
|
||||
tags: taiga
|
||||
|
||||
@@ -87,21 +90,21 @@
|
||||
tags: taiga
|
||||
|
||||
## TODO -- make these idempotent with creates=...
|
||||
- command: python3 manage.py migrate --noinput
|
||||
- command: sudo -u taiga python3 manage.py migrate --noinput
|
||||
chdir=/srv/taiga-back
|
||||
tags: taiga
|
||||
- command: python3 manage.py loaddata initial_user
|
||||
- command: sudo -u taiga python3 manage.py loaddata initial_user
|
||||
chdir=/srv/taiga-back
|
||||
tags: taiga
|
||||
- command: python3 manage.py loaddata initial_project_templates
|
||||
- command: sudo -u taiga python3 manage.py loaddata initial_project_templates
|
||||
chdir=/srv/taiga-back
|
||||
tags: taiga
|
||||
- command: python3 manage.py loaddata initial_role
|
||||
- command: sudo -u taiga python3 manage.py loaddata initial_role
|
||||
chdir=/srv/taiga-back
|
||||
tags: taiga
|
||||
- command: python3 manage.py compilemessages
|
||||
- command: sudo -u taiga python3 manage.py compilemessages
|
||||
chdir=/srv/taiga-back
|
||||
tags: taiga
|
||||
- command: python3 manage.py collectstatic --noinput
|
||||
- command: sudo -u taiga python3 manage.py collectstatic --noinput
|
||||
chdir=/srv/taiga-back
|
||||
tags: taiga
|
||||
|
||||
Reference in New Issue
Block a user