--- - name: restart_apache2 become: yes systemd: name: apache2 state: restarted enabled: yes