---
- name: Restart nginx
  ansible.builtin.service:
    name: nginx
    state: restarted
  become: true