Commit bf1cb682 by Fred Smith

tag notess tasks

parent 33a8b2be
...@@ -52,6 +52,9 @@ ...@@ -52,6 +52,9 @@
extra_args: "--exists-action w" extra_args: "--exists-action w"
become_user: "{{ edx_notes_api_user }}" become_user: "{{ edx_notes_api_user }}"
with_items: "{{ edx_notes_api_requirements }}" with_items: "{{ edx_notes_api_requirements }}"
tags:
- install
- install:system-requirements
- name: Migrate - name: Migrate
shell: > shell: >
...@@ -64,6 +67,9 @@ ...@@ -64,6 +67,9 @@
environment: environment:
EDXNOTES_CONFIG_ROOT: "{{ COMMON_CFG_DIR }}" EDXNOTES_CONFIG_ROOT: "{{ COMMON_CFG_DIR }}"
when: migrate_db is defined and migrate_db|lower == "yes" when: migrate_db is defined and migrate_db|lower == "yes"
tags:
- migrate
- migrate:db
- name: Write out gunicorn.py - name: Write out gunicorn.py
template: template:
...@@ -73,7 +79,8 @@ ...@@ -73,7 +79,8 @@
group: "{{ common_web_user }}" group: "{{ common_web_user }}"
mode: "0650" mode: "0650"
tags: tags:
- deploy - install
- install:configuration
- name: Write out the supervisor wrapper - name: Write out the supervisor wrapper
template: template:
...@@ -95,7 +102,8 @@ ...@@ -95,7 +102,8 @@
group: "{{ common_web_user }}" group: "{{ common_web_user }}"
mode: "0644" mode: "0644"
tags: tags:
- deploy - install
- install:configuration
- name: Setup the edx_notes_api env file - name: Setup the edx_notes_api env file
template: template:
...@@ -117,13 +125,15 @@ ...@@ -117,13 +125,15 @@
force: yes force: yes
when: not disable_edx_services when: not disable_edx_services
tags: tags:
- deploy - install
- install:configuration
- name: Update supervisor configuration - name: Update supervisor configuration
shell: "{{ supervisor_ctl }} -c {{ supervisor_cfg }} update" shell: "{{ supervisor_ctl }} -c {{ supervisor_cfg }} update"
when: not disable_edx_services when: not disable_edx_services
tags: tags:
- deploy - manage
- manage:start
- name: Restart supervisor - name: Restart supervisor
supervisorctl: supervisorctl:
...@@ -133,7 +143,8 @@ ...@@ -133,7 +143,8 @@
state: restarted state: restarted
when: not disable_edx_services when: not disable_edx_services
tags: tags:
- deploy - manage
- manage:start
- name: Create symlinks from the venv bin dir - name: Create symlinks from the venv bin dir
file: file:
...@@ -144,12 +155,18 @@ ...@@ -144,12 +155,18 @@
- python - python
- pip - pip
- django-admin.py - django-admin.py
tags:
- install
- install:app-requirements
- name: Create manage.py symlink - name: Create manage.py symlink
file: file:
src: "{{ edx_notes_api_manage }}" src: "{{ edx_notes_api_manage }}"
dest: "{{ COMMON_BIN_DIR }}/manage.{{ edx_notes_api_service_name }}" dest: "{{ COMMON_BIN_DIR }}/manage.{{ edx_notes_api_service_name }}"
state: link state: link
tags:
- install
- install:app-requirements
- name: Restart edx_notes_api - name: Restart edx_notes_api
supervisorctl: supervisorctl:
...@@ -159,3 +176,6 @@ ...@@ -159,3 +176,6 @@
state: restarted state: restarted
when: not disable_edx_services when: not disable_edx_services
become_user: "{{ supervisor_service_user }}" become_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