Skip to content
Snippets Groups Projects
Commit deccb12e authored by Chris Hines's avatar Chris Hines
Browse files

Add /usr/local/bin to the end of the default path

this was initially removed as it resulted in programs in /etc/profile.d searching /usr/local/bin, which if the NFS server had hung resulted in ec2-user not being able to log in
subsequently verified that it seems safe to add it to the end of the path, obviously subject to not having anything called from profile that exists in /usr/local
parent d1f02922
No related branches found
No related tags found
1 merge request!113Add /usr/local/bin to the end of the default path
---
- name: remove /usr/local/ from the PATH in /etc/profile
- name: place /usr/local/ last in the PATH in /etc/profile
lineinfile:
args:
dest: "/etc/profile"
insertbefore: BOF
line: "PATH=/bin:/usr/bin"
line: "PATH=/bin:/usr/bin:/usr/local/bin"
become: true
become_user: root
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment