Add bash_profile for loading bashrc
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
---
|
||||
- name: /etc/skel/.bash_profile
|
||||
template:
|
||||
dest=/etc/skel/.bash_profile src=bash_profile.j2 owner=root group=root mode=0644
|
||||
|
||||
- name: /root/.bash_profile
|
||||
template:
|
||||
dest=/root/.bash_profile src=bash_profile.j2 owner=root group=root mode=0644
|
||||
|
||||
- name: /etc/skel/.bashrc
|
||||
template:
|
||||
dest=/etc/skel/.bashrc src=bashrc.j2 owner=root group=root mode=0644
|
||||
|
||||
9
templates/bash_profile.j2
Normal file
9
templates/bash_profile.j2
Normal file
@@ -0,0 +1,9 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
# Get the aliases and functions
|
||||
[ -f $HOME/.bashrc ] && . $HOME/.bashrc
|
||||
|
||||
export PATH=$PATH:$HOME/bin
|
||||
export EDITOR=vim
|
||||
export PAGER=less
|
||||
export VISUAL=vim
|
||||
Reference in New Issue
Block a user