Commit e3e653a0 by Michael Roytman

add in handler tasks and remove notifies to original handler

parent 568ff339
---
- name: restart notifier-scheduler
supervisorctl:
name: "notifier-scheduler"
state: restarted
config: "{{ supervisor_cfg }}"
supervisorctl_path: "{{ supervisor_ctl }}"
when: not disable_edx_services
- name: restart notifier-celery-workers
supervisorctl:
name: "notifier-celery-workers"
state: restarted
config: "{{ supervisor_cfg }}"
supervisorctl_path: "{{ supervisor_ctl }}"
when: not disable_edx_services
...@@ -7,9 +7,6 @@ ...@@ -7,9 +7,6 @@
accept_hostkey: yes accept_hostkey: yes
become: true become: true
become_user: "{{ notifier_user }}" become_user: "{{ notifier_user }}"
notify:
- restart notifier-scheduler
- restart notifier-celery-workers
tags: tags:
- "install" - "install"
- "install:code" - "install:code"
...@@ -69,8 +66,6 @@ ...@@ -69,8 +66,6 @@
dest: "{{ NOTIFIER_CODE_DIR }}/notifier/settings_local.py" dest: "{{ NOTIFIER_CODE_DIR }}/notifier/settings_local.py"
mode: "0555" mode: "0555"
when: NOTIFIER_THEME_NAME != '' when: NOTIFIER_THEME_NAME != ''
notify:
- restart notifier-celery-workers
tags: tags:
- "install" - "install"
- "install:configuration" - "install:configuration"
...@@ -82,9 +77,6 @@ ...@@ -82,9 +77,6 @@
state: present state: present
become: true become: true
become_user: "{{ notifier_user }}" become_user: "{{ notifier_user }}"
notify:
- restart notifier-scheduler
- restart notifier-celery-workers
tags: tags:
- "install" - "install"
- "install:app-requirements" - "install:app-requirements"
...@@ -100,9 +92,6 @@ ...@@ -100,9 +92,6 @@
group: "{{ NOTIFIER_WEB_USER }}" group: "{{ NOTIFIER_WEB_USER }}"
mode: "0664" mode: "0664"
become: true become: true
notify:
- restart notifier-scheduler
- restart notifier-celery-workers
tags: tags:
- deploy - deploy
- "install" - "install"
...@@ -116,9 +105,28 @@ ...@@ -116,9 +105,28 @@
become_user: "{{ notifier_user }}" become_user: "{{ notifier_user }}"
environment: notifier_env_vars environment: notifier_env_vars
when: migrate_db is defined and migrate_db|lower == "yes" when: migrate_db is defined and migrate_db|lower == "yes"
notify:
- restart notifier-scheduler
- restart notifier-celery-workers
tags: tags:
- "install" - "install"
- "install:configuration" - "install:configuration"
- name: restart notifier-scheduler
supervisorctl:
name: "notifier-scheduler"
state: restarted
config: "{{ supervisor_cfg }}"
supervisorctl_path: "{{ supervisor_ctl }}"
when: not disable_edx_services
tags:
- "manage"
- "manage:start"
- name: restart notifier-celery-workers
supervisorctl:
name: "notifier-celery-workers"
state: restarted
config: "{{ supervisor_cfg }}"
supervisorctl_path: "{{ supervisor_ctl }}"
when: not disable_edx_services
tags:
- "manage"
- "manage:start"
...@@ -84,9 +84,6 @@ ...@@ -84,9 +84,6 @@
state: directory state: directory
owner: "{{ notifier_user }}" owner: "{{ notifier_user }}"
group: "{{ common_web_group }}" group: "{{ common_web_group }}"
notify:
- restart notifier-scheduler
- restart notifier-celery-workers
tags: tags:
- "install" - "install"
- "install:base" - "install:base"
...@@ -188,8 +185,6 @@ ...@@ -188,8 +185,6 @@
state: link state: link
force: yes force: yes
become_user: "{{ supervisor_user }}" become_user: "{{ supervisor_user }}"
notify:
- restart notifier-celery-workers
when: not disable_edx_services when: not disable_edx_services
tags: tags:
- "install" - "install"
...@@ -202,8 +197,6 @@ ...@@ -202,8 +197,6 @@
state: link state: link
force: yes force: yes
become_user: "{{ supervisor_user }}" become_user: "{{ supervisor_user }}"
notify:
- restart notifier-scheduler
when: not disable_edx_services when: not disable_edx_services
tags: tags:
- "install" - "install"
......
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