--- # Render mkdirs.cfg and run the SDP mkdirs.sh script to build the /p4 layout. # Shared by the install and update (new_sdp) paths. - name: "Render mkdirs.cfg" ansible.builtin.template: src: "./mkdirs.cfg.j2" dest: "/{{ perforce_sdp_volume }}/sdp/Server/Unix/setup/mkdirs.cfg" mode: '0644' - name: "Run the SDP mkdirs.sh script" ansible.builtin.command: "./mkdirs.sh mkdirs.cfg" args: chdir: "/{{ perforce_sdp_volume }}/sdp/Server/Unix/setup" # mkdirs.sh builds the /p4 layout once; p4_vars is its product, so skip the # re-run on a host that is already laid out (keeps the task idempotent). creates: "/p4/common/bin/p4_vars" register: perforce_mkdirs_output