diff --git a/ansible/roles/test/tasks/common_tasks/update_supervisor.yml b/ansible/roles/test/tasks/common_tasks/update_supervisor.yml new file mode 100644 index 00000000000..45dba5f43cb --- /dev/null +++ b/ansible/roles/test/tasks/common_tasks/update_supervisor.yml @@ -0,0 +1,12 @@ +- fail: msg="supervisor_host is not defined" + when: "supervisor_host is not defined" + +- name: "Reread supervisor configuration" + shell: "supervisorctl reread" + become: "yes" + delegate_to: "{{ supervisor_host }}" + +- name: "Update supervisor configuration" + shell: "supervisorctl update" + become: "yes" + delegate_to: "{{ supervisor_host }}"