--- - name: restart monit service: name: "monit" state: "restarted" when: not monit_containerized - name: restart monit command: /usr/bin/s6-svc -r /var/run/s6/services/monit when: monit_containerized