mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-28 12:32:50 +08:00
Merge branch 'fixp1template'
new approach
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user