Skip to content

Instantly share code, notes, and snippets.

@gregbuehler
Created February 18, 2014 19:31
Show Gist options
  • Save gregbuehler/9078200 to your computer and use it in GitHub Desktop.
Save gregbuehler/9078200 to your computer and use it in GitHub Desktop.
vars:
java_home: /opt/java/jdk1.7
tasks:
- shell: echo $PATH
register: initial_path
- name: do work
shell: run_java_foo.sh
environment:
JAVA_HOME: "{{ java_home }}"
PATH: "{{ java_home }}:{{ initial_path }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment