---
- name: "restart apache2"
become: true
ansible.builtin.systemd:
name: apache2
enabled: true
masked: false
state: restarted
...