don't need "" or {{}} using when: with variables

This commit is contained in:
Ibrahim Mkusa 2024-09-28 18:43:59 -04:00
parent f6dac7c5c1
commit 08ff77f5f8

View File

@ -41,7 +41,7 @@
loop: loop:
- ".bashrc" - ".bashrc"
- ".bash_profile" - ".bash_profile"
when: "{{ansible_user_id}}" != "root" when: ansible_user_id != "root"
- name: delete old configs - name: delete old configs
file: file:
@ -50,7 +50,7 @@
loop: loop:
- ".bashrc" - ".bashrc"
- ".bash_profile" - ".bash_profile"
when: "{{ansible_user_id}}" != "root" when: ansible_user_id != "root"
- name: link the dotfiles to users home directory - name: link the dotfiles to users home directory
command: command: