From fffd738a7d87af5a1823da26555445b803e35abc Mon Sep 17 00:00:00 2001 From: Lilian Roller Date: Mon, 1 Jul 2019 14:59:52 +0200 Subject: [PATCH] bashrc management update --- defaults/main.yml | 1 + tasks/main.yml | 1 + vars/main.yml | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 508dd73..0f2bf99 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -20,3 +20,4 @@ ranger_hidden_files: true # affected user accounts accounts: - "{{ ansible_user_id }}" + diff --git a/tasks/main.yml b/tasks/main.yml index 58dee09..3b3bb7a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -58,6 +58,7 @@ owner: 'root' group: 'root' mode: 'u=rw,g=r,o=' + when: allow_own_root_bashrc | bool - name: Copy bashrc configuration to non admin users become: yes diff --git a/vars/main.yml b/vars/main.yml index 4c8381b..8fce6d9 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -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: 111 # integer without dots +playbook_version_number: 112 # integer without dots playbook_version_path: '/etc/ansible-version/role_dotfiles_chaos-bodensee_github.version'