new approach
This commit is contained in:
parent
34f85fd2a0
commit
dc926162fe
2 changed files with 8 additions and 4 deletions
4
roles/badges/backend/files/ps1test/setstgps1.sh
Normal file
4
roles/badges/backend/files/ps1test/setstgps1.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Set PS1 based on env
|
||||
#
|
||||
PS1="[STG]\e[m[\u@\h \W]\$ "
|
||||
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue