nk20/ansible/roles/7-postinstall/tasks/main.yml

31 lines
831 B
YAML
Raw Permalink Normal View History

2020-07-21 20:36:37 +00:00
---
- name: Collect static files
command: /var/www/note_kfet/env/bin/python manage.py collectstatic --noinput
args:
chdir: /var/www/note_kfet
become_user: www-data
2020-07-21 20:36:37 +00:00
- name: Migrate Django database
command: /var/www/note_kfet/env/bin/python manage.py migrate
args:
chdir: /var/www/note_kfet
2020-08-01 14:32:26 +00:00
become_user: postgres
2020-07-21 20:36:37 +00:00
- name: Compile messages
command: /var/www/note_kfet/env/bin/python manage.py compilemessages
args:
chdir: /var/www/note_kfet
become_user: www-data
- name: Compile JavaScript messages
command: /var/www/note_kfet/env/bin/python manage.py compilejsmessages
2020-07-21 20:36:37 +00:00
args:
chdir: /var/www/note_kfet
become_user: www-data
2020-09-04 20:37:18 +00:00
- name: Install initial fixtures
command: /var/www/note_kfet/env/bin/python manage.py loaddata initial
2020-09-04 20:37:18 +00:00
args:
chdir: /var/www/note_kfet
become_user: postgres