--- # Pre-install cleanup: stop the running server and remove artifacts from any # previous install so the fresh SDP unpack and mkdirs run against a clean tree. - name: "Stop perforce" ansible.builtin.service: name: "p4d_{{ perforce_id }}" state: "stopped" failed_when: false when: new_p4d - name: "Remove existing sdp folder" ansible.builtin.file: path: "/{{ perforce_sdp_volume }}/sdp" state: absent - name: "Remove any existing crontab" ansible.builtin.file: path: /var/spool/cron/crontabs/perforce state: absent