From a058eadda3ce8217c60a78211359a92cefee698a Mon Sep 17 00:00:00 2001 From: Andrea Zonca Date: Tue, 16 Aug 2016 16:14:54 -0700 Subject: [PATCH] Workaround for path issue in Ansible 2.* See https://github.com/ansible/ansible/issues/14959 Closes #20 --- deploy.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deploy.yml b/deploy.yml index 640569c..f557b1f 100644 --- a/deploy.yml +++ b/deploy.yml @@ -1,5 +1,9 @@ --- - +- hosts: jupyterhub_hosts + tasks: + - command: echo "$PATH" + register: default_path + - hosts: jupyterhub_hosts roles: - common @@ -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 }}"