Skip to content

Commit

Permalink
fix(ansible): stop celery service at beginning of playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Apr 12, 2024
1 parent 79ce264 commit f77f1d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ansible/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f77f1d8

Please sign in to comment.