From 345850a7565e539a1316bc3ea51e3554e8e236e3 Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Wed, 4 Jan 2017 16:15:37 +1100
Subject: [PATCH] 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


Former-commit-id: deccb12e76f488012d6c2c8218a4ba49cb5c9914
---
 roles/allow_stale_nfs/tasks/main.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/roles/allow_stale_nfs/tasks/main.yml b/roles/allow_stale_nfs/tasks/main.yml
index 03358979..391c34dc 100644
--- a/roles/allow_stale_nfs/tasks/main.yml
+++ b/roles/allow_stale_nfs/tasks/main.yml
@@ -1,10 +1,10 @@
 ---
-- 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
 
-- 
GitLab