1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_dotfiles.git synced 2024-08-16 16:09:49 +02:00

add bashrc to root

This commit is contained in:
Lilian Roller 2019-07-01 14:52:09 +02:00
parent 57a2cfb6d5
commit f934cf0c2c
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
2 changed files with 10 additions and 1 deletions

View file

@ -50,6 +50,15 @@
with_items: '{{ admins }}'
when: admins is defined
- name: Copy bashrc configuration to root
become: yes
template:
src: 'templates/bashrc'
dest: '/root/.bashrc'
owner: 'root'
group: 'root'
mode: 'u=rw,g=r,o='
- name: Copy bashrc configuration to non admin users
become: yes
template:

View file

@ -8,5 +8,5 @@ bash:
shell: "/bin/bash"
keyboard: '$(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\] '
playbook_version_number: 110 # integer without dots
playbook_version_number: 111 # integer without dots
playbook_version_path: '/etc/ansible-version/role_dotfiles_chaos-bodensee_github.version'