--- - name: Restart Nginx ansible.builtin.service: name: nginx state: restarted ...