--- - name: restart nginx systemd: name: nginx state: restarted - name: restart cron systemd: name: cron state: restarted