Created
March 6, 2019 00:22
-
-
Save palm002/494887321adcb814d9efbf05b9748562 to your computer and use it in GitHub Desktop.
Add a system wide path using Ansible.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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