--- # Build the /p4 directory layout with mkdirs.sh, then wire the SDP environment # into the perforce user's shell. - name: "Build the SDP layout with mkdirs.sh" ansible.builtin.include_tasks: "common/run_mkdirs.yml" - name: "Add source script to perforce user bashrc" ansible.builtin.lineinfile: path: "/p4/.bashrc" create: true line: "source /p4/common/bin/p4_vars {{ perforce_id }}" insertafter: "EOF" owner: "{{ perforce_user }}" group: "{{ perforce_group }}" mode: '0644' # - name: "Copy perforce license file" # ansible.builtin.copy: # force: true # src: "./perforce-license" # dest: "/p4/{{ perforce_id }}/root/license" # owner: "{{ perforce_user }}" # group: "{{ perforce_group }}" # mode: '0644' # when: copy_license