--- # Prepare: stand up a real, configured commit-server for the monitoring role to # target (it queries p4 info and installs p4prometheus against a live p4d). - name: Prepare hosts: all become: true tasks: - name: "Create the SDP volume directories" ansible.builtin.file: path: "/{{ item }}" state: directory mode: '0755' loop: - hxdepots - hxlogs - hxmetadata - name: "Ensure cron is available" ansible.builtin.package: name: "{{ 'cron' if ansible_facts['os_family'] == 'Debian' else 'cronie' }}" state: present - name: "Install SDP and bring up p4d" ansible.builtin.include_role: name: perforce-sdp-install - name: "Configure the new commit-server (once)" become: true become_user: "{{ perforce_user }}" ansible.builtin.shell: >- /p4/sdp/Server/Unix/setup/configure_new_server.sh {{ perforce_id }} && touch /p4/.molecule_configured args: chdir: "/p4/sdp/Server/Unix/setup" creates: "/p4/.molecule_configured"