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