Commit 5d2bba3f by Max Rothman

Prevent supervisor from starting when services are flagged off

Prevously, supervisor was starting during AMI builds (and other times
when disable_edx_services was true). This is unnecessary, since none of
the services will be linked into supervisor anyways.
parent ea216ddf
......@@ -227,6 +227,7 @@
name: "{{ supervisor_service }}"
state: started
register: start_supervisor
when: not disable_edx_services
tags:
- manage
- manage:start
......@@ -250,6 +251,7 @@
# See https://github.com/ansible/ansible/issues/4853
- name: Update supervisor configuration
shell: "{{ supervisor_ctl }} -c {{ supervisor_cfg }} update"
when: not disable_edx_services
register: supervisor_update
changed_when: supervisor_update.stdout is defined and supervisor_update.stdout != ""
tags:
......
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