Skip to content

Commit

Permalink
fix(ansible): use absolute path for conda executable
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Apr 13, 2024
1 parent 29d5399 commit db1e279
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ansible/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,17 @@
become_user: root
- name: Create ShapeWorks Conda Env
ansible.builtin.shell: |
cd /opt/shapeworks && conda run /bin/bash -c "source install_shapeworks.sh"
conda clean -t -y
conda init
cd /opt/shapeworks && /opt/conda/bin/conda run /bin/bash -c "source install_shapeworks.sh"
/opt/conda/bin/conda clean -t -y
/opt/conda/bin/conda init
echo "conda activate shapeworks" >> /home/ubuntu/.bashrc
args:
executable: /bin/bash
become: true
become_user: root
- name: Install dependencies in ShapeWorks Conda Env
ansible.builtin.shell: |
/opt/conda/bin/conda activate shapeworks
pip install /home/ubuntu/celery_project
pip install /home/ubuntu/celery_project/swcc
args:
Expand Down

0 comments on commit db1e279

Please sign in to comment.