Skip to content

Commit

Permalink
Merge pull request #14 from minrk/set-path
Browse files Browse the repository at this point in the history
add conda to PATH in two places
  • Loading branch information
minrk committed Jun 7, 2016
2 parents 28750f8 + bc44fa0 commit 05e2f0a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/python/tasks/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
creates: "{{ conda_prefix }}"
executable: /bin/bash

# add conda to path in two places, so it's always registered
- name: add conda to PATH
# add it to the front of bashrc, so it's even on noninteractive paths
lineinfile:
Expand All @@ -27,6 +28,12 @@
line: "export PATH={{conda_prefix}}/bin:$PATH"
insertbefore: BOF

- name: add conda to login PATH
# add it to profile, so it's for all login shells
copy:
dest: /etc/profile.d/conda.sh
content: "export PATH={{conda_prefix}}/bin:$PATH"

- name: add conda config
copy:
content: "{{ conda_config | to_yaml }}"
Expand Down

0 comments on commit 05e2f0a

Please sign in to comment.