--- - name: Ensure nginx service is up and running systemd: state: started daemon_reload: yes enabled: yes name: nginx become: True become_user: root