Skip to content

Instantly share code, notes, and snippets.

@tgerla
Created May 1, 2013 14:21
Show Gist options
  • Select an option

  • Save tgerla/5495525 to your computer and use it in GitHub Desktop.

Select an option

Save tgerla/5495525 to your computer and use it in GitHub Desktop.
---
- hosts: all
vars:
debug: True
tasks:
- name: get path
shell: "echo $PATH"
register: last_result
- name: set path
shell: "echo path is: $PATH"
environment:
PATH: "/foo:{{ last_result.stdout }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment