--- # Install and enable the p4d systemd service for this instance. - name: "Install p4d systemd unit" ansible.builtin.template: src: "./p4d_instance.service.j2" dest: "/etc/systemd/system/p4d_{{ perforce_id }}.service" mode: '0755' owner: "root" group: "root" - name: "Enable perforce systemd service" ansible.builtin.systemd: name: "p4d_{{ perforce_id }}" enabled: true daemon_reload: true state: "started" when: p4d_enabled