Skip to content

Commit

Permalink
Workaround for path issue in Ansible 2.*
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Aug 16, 2016
1 parent ac7eea5 commit a058ead
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
---

- hosts: jupyterhub_hosts
tasks:
- command: echo "$PATH"
register: default_path

- hosts: jupyterhub_hosts
roles:
- common
Expand All @@ -13,4 +17,4 @@
- { role: cull_idle, when: use_cull_idle_servers}
- nbgrader
environment:
PATH: "/opt/conda/bin:{{ (ansible_env|default({})).PATH|default('') }}"
PATH: "/opt/conda/bin:{{ default_path.stdout }}"

0 comments on commit a058ead

Please sign in to comment.