From 619a6ae01924d67c1cf98063e2f34f44dc5bb5db Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 1 Feb 2019 14:59:07 +0100 Subject: [PATCH] Continue testing --- defaults/main.yml | 4 +--- tasks/main.yml | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 9fa588a..d947e23 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -7,7 +7,5 @@ bash: pwgen: true 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\] ' - -admins: - - root + diff --git a/tasks/main.yml b/tasks/main.yml index a371609..753e2ef 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -23,6 +23,7 @@ group: '{{ item }}' mode: 'u=rw,g=r,o=' with_items: '{{ admins }}' + when: admins is defined - name: Copy vimrc configuration to root copy: @@ -40,6 +41,7 @@ group: '{{ item }}' mode: 'u=rw,g=r,o=' with_items: "{{ admins }}" + when: admins is defined - name: install nextcloud-client systemd unit file template: