--- - name: Create gitea.service ansible.builtin.template: src: gitea.service.j2 dest: /etc/systemd/system/gitea.service notify: - Reload systemd - Restart gitea - name: Flush handlers meta: flush_handlers - name: Ensure service is started ansible.builtin.systemd: state: started name: gitea - name: Ensure service is enabled ansible.builtin.systemd: enabled: yes name: gitea