--- - name: Reload Systemd become: true ansible.builtin.systemd: daemon_reload: true - name: Reload Gitea become: true ansible.builtin.systemd: name: gitea state: restarted # Under --check a new unit is only simulated, so systemd would not find it. when: not ansible_check_mode or __gitea_unit_file | default({}) is not changed