removed a space, added a file, added a copy of the file to main.yml

This commit is contained in:
aikidouke 2016-04-06 21:25:52 +00:00
parent 6ced9a33a1
commit 77565259cd
3 changed files with 20 additions and 2 deletions

View file

@ -0,0 +1,3 @@
# Set PS1 based on env
#
PS1="\e[0;31m[PROD]\e[m[\u@\h \W]\$ "

View file

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

View file

@ -168,7 +168,7 @@
- badges
- 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
#
- name: set PS1 for stage in /etc/profile.d
@ -183,3 +183,18 @@
- base
- 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