# Upgrade to p4d 19.1 # ------------------------------------------------------------------ - name: Upgrade to 19.1 - outside in hosts: replicas tasks: - name: Rename p4d-19-1 to p4d copy: remote_src: True src: /p4/common/bin/p4d-19.1 dest: /p4/common/bin/p4d - name: Execute upgrade.sh shell: /p4/common/bin/upgrade.sh 1 - name: Stop the replica shell: "/p4/1/bin/p4d_1_init stop" # ------------------------------------------------------------------ - name: Install SDP hosts: master tasks: - name: Copy remote 19.2 into place copy: remote_src: True src: /p4/common/bin/p4d-19.1 dest: /p4/common/bin/p4d - name: Execute upgrade shell: /p4/common/bin/upgrade.sh 1 # ------------------------------------------------------------------ - name: Install SDP hosts: replicas tasks: - name: Start the replica shell: "/p4/1/bin/p4d_1_init start"