Add jinja2 variable for PATH variable environment

This commit is contained in:
Jérémy Dubois 2020-10-13 11:43:59 +02:00
parent 20e7f950be
commit 57acbd6091
3 changed files with 7 additions and 5 deletions

View file

@ -34,4 +34,6 @@ evomaintenance_hosts: >
| union(evomaintenance_additional_hosts)
| 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"

View file

@ -1,7 +1,7 @@
---
- name: Customize root's .profile
copy:
src: profile
template:
src: profile.j2
dest: /root/.profile
tags:
- admin
@ -26,8 +26,8 @@
- dotfiles
- name: Change default .profile skeleton
copy:
src: profile
template:
src: profile.j2
dest: /etc/skel/.profile
tags:
- admin

View file

@ -2,7 +2,7 @@
#
# 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 PS1="\u@\h:\w\\$ "
HISTFILE=$HOME/.histfile