Commit 51e14f04 by Morgan Robertson Committed by Feanil Patel

Add lifecycle tags for ansible-role-django-ida.

parent 97984fd5
......@@ -19,6 +19,9 @@
src: edx/app/{{ role_name }}/{{ role_name }}_gunicorn.py.j2
dest: "{{ '{{' }} {{ role_name }}_home }}/{{ role_name }}_gunicorn.py"
sudo_user: "{{ '{{' }} {{ role_name }}_user }}"
tags:
- install
- install:configuration
- name: install application requirements
pip:
......@@ -27,6 +30,9 @@
state: present
sudo_user: "{{ '{{' }} {{ role_name }}_user }}"
with_items: "{{ '{{' }} {{ role_name }}_requirements }}"
tags:
- install
- install:app-requirements
- name: migrate
shell: >
......@@ -37,6 +43,9 @@
sudo_user: "{{ '{{' }} {{ role_name }}_user }}"
environment: "{{ '{{' }} {{ role_name }}_environment }}"
when: migrate_db is defined and migrate_db|lower == "yes"
tags:
- migrate
- migrate:db
- name: write out the supervisor wrapper
template:
......@@ -45,6 +54,9 @@
mode: 0650
owner: "{{ '{{' }} supervisor_user }}"
group: "{{ '{{' }} common_web_user }}"
tags:
- install
- install:configuration
- name: write supervisord config
template:
......@@ -53,6 +65,9 @@
owner: "{{ '{{' }} supervisor_user }}"
group: "{{ '{{' }} common_web_user }}"
mode: 0644
tags:
- install
- install:configuration
- name: setup the {{ role_name }} env file
template:
......@@ -61,6 +76,9 @@
owner: "{{ '{{' }} {{ role_name }}_user }}"
group: "{{ '{{' }} {{ role_name }}_user }}"
mode: 0644
tags:
- install
- install:configuration
- name: enable supervisor script
file:
......@@ -69,10 +87,16 @@
state: link
force: yes
when: not disable_edx_services
tags:
- install
- install:configuration
- name: update supervisor configuration
shell: "{{ '{{' }} supervisor_ctl }} -c {{ '{{' }} supervisor_cfg }} update"
when: not disable_edx_services
tags:
- install
- install:configuration
- name: create symlinks from the venv bin dir
file:
......@@ -83,6 +107,9 @@
- python
- pip
- django-admin.py
tags:
- install
- install:base
- name: create symlinks from the repo dir
file:
......@@ -91,6 +118,9 @@
state: link
with_items:
- manage.py
tags:
- install
- install:base
- name: restart the application
supervisorctl:
......@@ -100,3 +130,6 @@
name: "{{ '{{' }} {{ role_name }}_service_name }}"
when: not disable_edx_services
sudo_user: "{{ '{{' }} supervisor_service_user }}"
tags:
- manage
- manage:start
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment