ansible-host: Add missing bashrc file
This commit is contained in:
parent
18919643d9
commit
9532fa165e
1 changed files with 19 additions and 0 deletions
19
roles/ansible-host/files/root-bashrc.sh
Normal file
19
roles/ansible-host/files/root-bashrc.sh
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# .bashrc
|
||||||
|
|
||||||
|
# User specific aliases and functions
|
||||||
|
|
||||||
|
alias rm='rm -i'
|
||||||
|
alias cp='cp -i'
|
||||||
|
alias mv='mv -i'
|
||||||
|
|
||||||
|
# Source global definitions
|
||||||
|
if [ -f /etc/bashrc ]; then
|
||||||
|
. /etc/bashrc
|
||||||
|
fi
|
||||||
|
|
||||||
|
# make sure that ssh agent is running and connect to it
|
||||||
|
[ -f /root/.ssh/agent ] && source /root/.ssh/agent > /dev/null
|
||||||
|
if ! kill -0 "${SSH_AGENT_PID}" > /dev/null 2>&1 ; then
|
||||||
|
ssh-agent -s > /root/.ssh/agent
|
||||||
|
source /root/.ssh/agent > /dev/null
|
||||||
|
fi
|
Loading…
Add table
Add a link
Reference in a new issue