Update by ialbert on Thu Feb  1 14:30:14 EST 2018 from yolo.local
-- name: restart nginx
- become: yes
- service: name=nginx state=restarted
+- name: data update
+ shell: make data
+ args:
+ chdir: "{{ django_engine_dir }}"
-- name: restart postgresql
+- name: migrate database
+ shell: "source {{conda_activate}} {{conda_env}} && python manage.py migrate --settings {{django_settings_module}}"
+ args:
+ executable: /bin/bash
+ chdir: "{{ django_engine_dir }}"
+
+- name: reload supervisor
become: yes
service:
- name: nginx
- state: restarted
+ name: supervisor
+ state: reloaded
- name: restart supervisor
become: yes
name: supervisor
state: restarted
-- name: reload supervisor
+- name: restart nginx
+ become: yes
+ service: name=nginx state=restarted
+
+- name: restart postgresql
become: yes
service:
- name: supervisor
- state: reloaded
+ name: nginx
+ state: restarted
-- name: data update
- shell: make data
- args:
- chdir: "{{ django_engine_dir }}"
-- name: migrate database
- shell: "source {{conda_activate}} {{conda_env}} && python manage.py migrate --settings {{django_settings_module}}"
- args:
- executable: /bin/bash
- chdir: "{{ django_engine_dir }}"
