Skip to content

Commit

Permalink
make adding condarc and modifying bashrc conditional
Browse files Browse the repository at this point in the history
robinandeer committed Apr 19, 2015

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 610dfb0 commit fbaafe4
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -11,3 +11,6 @@ miniconda_environments:
- name: prod
python_version: 2.7
pkgs: 'pip ipython'

miniconda_modify_bashrc: no
miniconda_add_condarc: yes
2 changes: 2 additions & 0 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
@@ -6,12 +6,14 @@
copy: src={{ item }} dest="~/.{{ item }}"
with_items:
- condarc
when: miniconda_add_condarc

- name: add miniconda to the PATH
sudo: no
shell: "echo '{{ item }}' >> ~/.bashrc executable=/bin/bash"
with_items:
- "export PATH={{ miniconda_home }}/bin:$PATH"
when: miniconda_modify_bashrc

- name: update conda to latest version
sudo: no

0 comments on commit fbaafe4

Please sign in to comment.