diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..729ddbf --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,4 @@ +--- + +bash: + bashrc: '' diff --git a/files/bashrc b/files/bashrc index e17684e..43e563c 100644 --- a/files/bashrc +++ b/files/bashrc @@ -14,6 +14,8 @@ export PATH PS1='$(if [[ $(id -u) -ne 0 ]];then echo "\[\033[01;33m\]"; else echo "\[\033[01;31m\]"; fi) $(if [[ $? == 0 ]]; then printf "\xE2\x9D\xA4"; fi) \[\033[01;32m\]\u\[\033[01;36m\]@\[\033[01;32m\]\H\[\033[01;34m\] <\A> \[\033[01;35m\] \j \[\033[01;36m\] \w \[\033[01;33m\]\n\[\033[01;33m\] $(git branch 2>/dev/null | sed -n "s/* \(.*\)/\1 /p")$\[\033[01;00m\] ' +{{ bash.bashrc }} + # User specific aliases and functions alias ll="ls -all" diff --git a/tasks/main.yml b/tasks/main.yml index 391a4a5..4d7de44 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -14,7 +14,7 @@ mode: 'u=rw,g=r,o=r' - name: Copy bashrc configuration to admin users - copy: + template: src: 'files/bashrc' dest: '/home/{{ item }}/.bashrc' owner: '{{ item }}'