diff --git a/ansible/playbook.yml b/ansible/playbook.yml index d0dc139d..46d3c97f 100644 --- a/ansible/playbook.yml +++ b/ansible/playbook.yml @@ -62,14 +62,17 @@ cp -nr /opt/shapeworks/lib/* /usr/local/lib/. become: true become_user: root - - name: Install Conda & Create ShapeWorks Conda Env + - name: Install Conda ansible.builtin.shell: | - export PATH=/opt/conda/bin:$PATH curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/Miniconda3-latest-Linux-x86_64.sh chmod 777 /tmp/Miniconda3-latest-Linux-x86_64.sh /tmp/Miniconda3-latest-Linux-x86_64.sh -b -f -p /opt/conda - cd /opt/shapeworks - source install_shapeworks.sh + become: true + become_user: root + - name: Create ShapeWorks Conda Env + ansible.builtin.shell: | + export PATH=/opt/conda/bin:$PATH + conda run /bin/bash -c source /opt/shapeworks/install_shapeworks.sh args: executable: /bin/bash become: true