Merge branch 'bashrc_root'
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
commit
1b9fc70649
2 changed files with 17 additions and 0 deletions
|
@ -4,4 +4,12 @@
|
||||||
name: root
|
name: root
|
||||||
shell: "{{ root_shell }}"
|
shell: "{{ root_shell }}"
|
||||||
password: "{{ root_password }}"
|
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