removed a space, added a file, added a copy of the file to main.yml
This commit is contained in:
parent
6ced9a33a1
commit
77565259cd
3 changed files with 20 additions and 2 deletions
3
roles/badges/backend/files/ps1test/setprodps1.sh
Normal file
3
roles/badges/backend/files/ps1test/setprodps1.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Set PS1 based on env
|
||||||
|
#
|
||||||
|
PS1="\e[0;31m[PROD]\e[m[\u@\h \W]\$ "
|
|
@ -1,4 +1,4 @@
|
||||||
# Set PS1 based on env
|
# Set PS1 based on env
|
||||||
#
|
#
|
||||||
PS1="[STG]\e[m[\u@\h \W]\$ "
|
PS1="[STG]\e[m[\u@\h \W]\$ "
|
||||||
|
|
||||||
|
|
|
@ -168,7 +168,7 @@
|
||||||
- badges
|
- badges
|
||||||
- badges/backend
|
- badges/backend
|
||||||
|
|
||||||
#Set PS1 to show prod/stage environment at PS1
|
#Set PS1 to show 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 stage in /etc/profile.d
|
- name: set PS1 for stage in /etc/profile.d
|
||||||
|
@ -183,3 +183,18 @@
|
||||||
- base
|
- base
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
#Set PS1 to show prod environment at PS1
|
||||||
|
#Should work in sh/bash. Needs tested in other shells
|
||||||
|
#
|
||||||
|
- name: set PS1 for prod in /etc/profile.d
|
||||||
|
copy: >
|
||||||
|
src=ps1test/setprodps1.sh
|
||||||
|
dest="/etc/profile.d/setprodps1.sh"
|
||||||
|
owner=root
|
||||||
|
group=sysadmin-badges
|
||||||
|
mode=644
|
||||||
|
when: env == 'production'
|
||||||
|
tags:
|
||||||
|
- base
|
||||||
|
- config
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue