Skip to content

Instantly share code, notes, and snippets.

@jalons

jalons/replace Secret

Last active August 29, 2015 14:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jalons/b1d35e34ea7eb5849902 to your computer and use it in GitHub Desktop.
manage_python_path:
cmd.run:
- name: sed -i '/^PATH/ s|$|:/opt/python-2.7.3/bin|' /etc/profile.d/dev.sh
- unless: grep python-2.7.3 /etc/profile.d/dev.sh
@jalons
Copy link
Author

jalons commented Jan 5, 2015

BEFORE:
'PATH=/sbin:/usr/sbin:/bin:/usr/bin:/sbin:/usr/sbin
AFTER:
'PATH=/sbin:/usr/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/opt/python-2.7.3/bin'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment