diff --git a/roles/root_account/tasks/main.yml b/roles/root_account/tasks/main.yml index d95c1ba..be0b984 100644 --- a/roles/root_account/tasks/main.yml +++ b/roles/root_account/tasks/main.yml @@ -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= ... diff --git a/roles/root_account/templates/bashrc.j2 b/roles/root_account/templates/bashrc.j2 new file mode 100644 index 0000000..d53befb --- /dev/null +++ b/roles/root_account/templates/bashrc.j2 @@ -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'