set prod/stg colored PS1 depending on env == staging or production
remove from testing on badges and added to base role
This commit is contained in:
parent
c57b88f72c
commit
0dcf06601e
4 changed files with 30 additions and 29 deletions
|
@ -168,33 +168,4 @@
|
|||
- badges
|
||||
- badges/backend
|
||||
|
||||
#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
|
||||
copy: >
|
||||
src=ps1test/setstgps1.sh
|
||||
dest="/etc/profile.d/setstgps1.sh"
|
||||
owner=root
|
||||
group=sysadmin-badges
|
||||
mode=644
|
||||
when: env == 'staging'
|
||||
tags:
|
||||
- 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
|
||||
|
||||
|
|
|
@ -363,3 +363,33 @@
|
|||
#
|
||||
- name: Set up watchdog
|
||||
include: watchdog.yml
|
||||
|
||||
|
||||
#Set PS1 to show stage environment at PS1
|
||||
#
|
||||
- name: set PS1 for stage in /etc/profile.d
|
||||
copy: >
|
||||
src=setstgps1.sh
|
||||
dest="/etc/profile.d/setstgps1.sh"
|
||||
owner=root
|
||||
group=root
|
||||
mode=644
|
||||
when: env == 'staging'
|
||||
tags:
|
||||
- base
|
||||
- config
|
||||
|
||||
#Set PS1 to show prod environment at PS1
|
||||
#
|
||||
- name: set PS1 for prod in /etc/profile.d
|
||||
copy: >
|
||||
src=setprodps1.sh
|
||||
dest="/etc/profile.d/setprodps1.sh"
|
||||
owner=root
|
||||
group=root
|
||||
mode=644
|
||||
when: env == 'production'
|
||||
tags:
|
||||
- base
|
||||
- config
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue