Commit 51b75c4b by Xavier Antoviaque

supervisor-xserver: Switch from supervisor reloads to ansible "present" action

`supervisorctl reload` not only reloads the configuration files, but
also restarts all services, which causes all services to be reloaded
several times, and causes errors when the playbook later attempts to
start the services after changes have been applied.
parent e226ab90
......@@ -56,8 +56,15 @@
tags:
- deploy
- name: ora | reload supervisor to allow to start the new services
shell: "{{ supervisor_ctl }} -c {{ supervisor_cfg }} reload"
- name: ora | ensuring ora and ora_celery are activated in supervisor
supervisorctl: >
name="{{ item }}"
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=present
with_items: ['ora', 'ora_celery']
tags:
- deploy
# Do A Checkout
- name: ora | git checkout ora repo into {{ ora_app_dir }}
......
......@@ -37,8 +37,15 @@
tags:
- deploy
- name: xqueue | reload supervisor to allow to start the new services
shell: "{{ supervisor_ctl }} -c {{ supervisor_cfg }} reload"
- name: xqueue | ensuring xqueue and xqueue_consumer are activated in supervisor
supervisorctl: >
name="{{ item }}"
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=present
with_items: ['xqueue', 'xqueue_consumer']
tags:
- deploy
# Do A Checkout
- name: xqueue | git checkout xqueue repo into xqueue_code_dir
......
......@@ -20,10 +20,14 @@
tags:
- deploy
- name: xserver | reload supervisor to allow to start the new services
shell: "{{ supervisor_ctl }} -c {{ supervisor_cfg }} reload"
- name: xserver | ensuring xserver is activated in supervisor
supervisorctl: >
name="xserver"
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=present
tags:
- deploy
- deploy
- name: xserver | install requirements
pip: requirements="{{xserver_requirements_file}}" virtualenv="{{ xserver_venv_dir }}" state=present
......
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