From f77f1d80d024f189b33de772813416fa5985d00e Mon Sep 17 00:00:00 2001 From: Anne Haley Date: Fri, 12 Apr 2024 23:50:42 +0000 Subject: [PATCH] fix(ansible): stop celery service at beginning of playbook --- ansible/playbook.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/playbook.yml b/ansible/playbook.yml index 087dea1a..e108b9e5 100644 --- a/ansible/playbook.yml +++ b/ansible/playbook.yml @@ -17,6 +17,12 @@ celery_repository_url: https://github.com/girder/shapeworks-cloud.git celery_environment: "{{ django_vars }}" tasks: + - name: Stop celery service to prevent manage_workers task from stopping instances + systemd: + state: stopped + name: celery + become: true + become_user: root - name: Save environment variables ansible.builtin.shell: | echo "{{ django_vars }}" > /home/ubuntu/celery_project/.env