Add a very simple bashrc for root
This commit is contained in:
parent
2f3612fd8e
commit
8dca876bbc
2 changed files with 17 additions and 0 deletions
|
@ -4,4 +4,12 @@
|
|||
name: root
|
||||
shell: "{{ root_shell }}"
|
||||
password: "{{ root_password }}"
|
||||
|
||||
- name: Setup bashrc for root
|
||||
template:
|
||||
src: bashrc.j2
|
||||
dest: /root/.bashrc
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=r,g=,o=
|
||||
...
|
||||
|
|
9
roles/root_account/templates/bashrc.j2
Normal file
9
roles/root_account/templates/bashrc.j2
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ ansible_managed | comment }}
|
||||
|
||||
PS1='\[\e[1;31m\]$(hostname -f)\[\e[0m\] \w \[\e[1;36m\]\$\[\e[0m\] '
|
||||
|
||||
export LS_OPTIONS='--color=auto'
|
||||
eval "$(dircolors)"
|
||||
alias ls='ls $LS_OPTIONS'
|
||||
alias ll='ls $LS_OPTIONS -l'
|
||||
alias l='ls $LS_OPTIONS -lA'
|
Loading…
Reference in a new issue