--- - name: Generate etesync-dav.service become: true ansible.builtin.template: src: 'templates/etesync-dav.service.j2' dest: '/usr/lib/systemd/system/etesync-dav.service' mode: '0644' owner: 'root' group: 'root' notify: - 'Run systemctl restart etesync-dav.service' - 'Run systemctl enable etesync-dav.service' - name: Make sure etesync-dav.service started become: true ansible.builtin.systemd: name: 'etesync-dav.service' enabled: true state: 'started' daemon_reload: true