Merge branch 'fixp1template'

new approach
This commit is contained in:
aikidouke 2016-04-06 20:51:20 +00:00
commit 092dcf72ff
2 changed files with 8 additions and 4 deletions

View file

@ -0,0 +1,4 @@
# Set PS1 based on env
#
PS1="[STG]\e[m[\u@\h \W]\$ "

View file

@ -171,10 +171,10 @@
#Set PS1 to show prod/stage environment at PS1
#Should work in sh/bash. Needs tested in other shells
#
- name: set PS1 for prod and stage in /etc/profile.d
template: >
src=templates/setps1.sh.j2
dest="/etc/profile.d/setps1.sh"
- name: set PS1 for stage in /etc/profile.d
copy: >
src=roles/badges/backend/files/ps1test/setstgps1.sh
dest="/etc/profile.d/setstgps1.sh"
owner=root
group=sysadmin-badges
mode=644