Add jinja2 variable for PATH variable environment
This commit is contained in:
parent
20e7f950be
commit
57acbd6091
|
@ -34,4 +34,6 @@ evomaintenance_hosts: >
|
||||||
| union(evomaintenance_additional_hosts)
|
| union(evomaintenance_additional_hosts)
|
||||||
| unique }}
|
| unique }}
|
||||||
|
|
||||||
|
evobsd_path: >-
|
||||||
|
"$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
|
||||||
cron_root_path: "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
|
cron_root_path: "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
- name: Customize root's .profile
|
- name: Customize root's .profile
|
||||||
copy:
|
template:
|
||||||
src: profile
|
src: profile.j2
|
||||||
dest: /root/.profile
|
dest: /root/.profile
|
||||||
tags:
|
tags:
|
||||||
- admin
|
- admin
|
||||||
|
@ -26,8 +26,8 @@
|
||||||
- dotfiles
|
- dotfiles
|
||||||
|
|
||||||
- name: Change default .profile skeleton
|
- name: Change default .profile skeleton
|
||||||
copy:
|
template:
|
||||||
src: profile
|
src: profile.j2
|
||||||
dest: /etc/skel/.profile
|
dest: /etc/skel/.profile
|
||||||
tags:
|
tags:
|
||||||
- admin
|
- admin
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# sh/ksh initialization
|
# sh/ksh initialization
|
||||||
|
|
||||||
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games
|
PATH="{{ evobsd_path }}"
|
||||||
export PATH HOME TERM
|
export PATH HOME TERM
|
||||||
export PS1="\u@\h:\w\\$ "
|
export PS1="\u@\h:\w\\$ "
|
||||||
HISTFILE=$HOME/.histfile
|
HISTFILE=$HOME/.histfile
|
Loading…
Reference in a new issue