Skip to content

Instantly share code, notes, and snippets.

@palm002
Created March 6, 2019 00:22
Show Gist options
  • Save palm002/494887321adcb814d9efbf05b9748562 to your computer and use it in GitHub Desktop.
Save palm002/494887321adcb814d9efbf05b9748562 to your computer and use it in GitHub Desktop.
Add a system wide path using Ansible.
# Add /usr/local/go/bin to the PATH environment variable
# {{ go_bin }} = path/to/golang/binaries
- name: Adding golang bin dir to system-wide $PATH
copy:
dest: /etc/profile.d/custom-path-for-golang.sh
content: 'PATH=$PATH:{{ go_bin }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment