From 00684c41baf941b0d61c7744dfc8ab7c27ac2b8e Mon Sep 17 00:00:00 2001 From: Gagan Deep Date: Fri, 24 Sep 2021 20:43:15 +0530 Subject: [PATCH] [fix] Add firmware-upgrader celery worker only when module is used #297 Closes #297 --- tasks/supervisor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/supervisor.yml b/tasks/supervisor.yml index e23f1c5f..3bd26093 100644 --- a/tasks/supervisor.yml +++ b/tasks/supervisor.yml @@ -41,7 +41,7 @@ src: supervisor/celery_firmware_upgrader.j2 dest: "{{ supervisor_path | format('celery_firmware_upgrader') }}" mode: 0644 - when: openwisp2_celery_firmware_upgrader + when: openwisp2_firmware_upgrader and openwisp2_celery_firmware_upgrader notify: reload supervisor - name: supervisor celerybeat