openwisp / ansible-openwisp2

Ansible role that installs and upgrades OpenWISP.
https://openwisp.io/docs/dev/ansible/
BSD 3-Clause "New" or "Revised" License
474 stars 137 forks source link

[fix] Fixed task for restarting supervisor services #405

Closed pandafy closed 1 year ago

pandafy commented 1 year ago

Bug: The "when" condition defined in "openwisp2_default_supervisor_restart" was not getting evaluated when the task was getting executed.

Fix: Wrapped the "when" condition in Jinja delimiters ("{{ }}"), so it is evaluated at variable assignment.

Closes https://github.com/openwisp/ansible-openwisp2/issues/406