Merge branch 'fixp1template'
new approach
This commit is contained in:
commit
092dcf72ff
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
|
#Set PS1 to show prod/stage environment at PS1
|
||||||
#Should work in sh/bash. Needs tested in other shells
|
#Should work in sh/bash. Needs tested in other shells
|
||||||
#
|
#
|
||||||
- name: set PS1 for prod and stage in /etc/profile.d
|
- name: set PS1 for stage in /etc/profile.d
|
||||||
template: >
|
copy: >
|
||||||
src=templates/setps1.sh.j2
|
src=roles/badges/backend/files/ps1test/setstgps1.sh
|
||||||
dest="/etc/profile.d/setps1.sh"
|
dest="/etc/profile.d/setstgps1.sh"
|
||||||
owner=root
|
owner=root
|
||||||
group=sysadmin-badges
|
group=sysadmin-badges
|
||||||
mode=644
|
mode=644
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue