From 08ff77f5f8098f76207341cfa3cef58360939d61 Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Sat, 28 Sep 2024 18:43:59 -0400 Subject: [PATCH] don't need "" or {{}} using when: with variables --- install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.yml b/install.yml index 82fe1b3..0b2636c 100644 --- a/install.yml +++ b/install.yml @@ -41,7 +41,7 @@ loop: - ".bashrc" - ".bash_profile" - when: "{{ansible_user_id}}" != "root" + when: ansible_user_id != "root" - name: delete old configs file: @@ -50,7 +50,7 @@ loop: - ".bashrc" - ".bash_profile" - when: "{{ansible_user_id}}" != "root" + when: ansible_user_id != "root" - name: link the dotfiles to users home directory command: