diff --git a/roles/web/tasks/setup_django_app.yml b/roles/web/tasks/setup_django_app.yml index 0facfd76..f767dd36 100644 --- a/roles/web/tasks/setup_django_app.yml +++ b/roles/web/tasks/setup_django_app.yml @@ -31,5 +31,7 @@ settings: "{{ django_settings_file }}" environment: "{{ django_environment }}" when: run_django_collectstatic is defined and run_django_collectstatic - notify: restart application + notify: + - restart application + - restart celery tags: django.collectstatic diff --git a/roles/web/tasks/setup_git_repo.yml b/roles/web/tasks/setup_git_repo.yml index 90102048..53bfab8b 100644 --- a/roles/web/tasks/setup_git_repo.yml +++ b/roles/web/tasks/setup_git_repo.yml @@ -34,7 +34,9 @@ dest={{ project_path }} accept_hostkey=yes when: setup_git_repo is defined and setup_git_repo - notify: restart application + notify: + - restart application + - restart celery tags: git - name: Delete all .pyc files diff --git a/roles/web/tasks/setup_virtualenv.yml b/roles/web/tasks/setup_virtualenv.yml index 0e2ecdd5..d7e02359 100644 --- a/roles/web/tasks/setup_virtualenv.yml +++ b/roles/web/tasks/setup_virtualenv.yml @@ -75,7 +75,9 @@ group={{ gunicorn_group }} mode=0640 backup=yes - notify: restart application + notify: + - restart application + - restart celery tags: deploy - name: Create the maintenance page