From b7ffa0dd6042c5ed2f130bcc4a0707f99fadcd49 Mon Sep 17 00:00:00 2001 From: TechDufus Date: Thu, 12 Sep 2024 08:14:07 -0500 Subject: [PATCH] =?UTF-8?q?bug:=F0=9F=AA=B0=20Fixing=20`when:`=20condition?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/hammerspoon/tasks/MacOSX.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/hammerspoon/tasks/MacOSX.yml b/roles/hammerspoon/tasks/MacOSX.yml index bf960003..1686ae6b 100644 --- a/roles/hammerspoon/tasks/MacOSX.yml +++ b/roles/hammerspoon/tasks/MacOSX.yml @@ -10,7 +10,7 @@ state: directory mode: "0755" -- name: "Hammerspoon | Copy init.lua" +- name: "Hammerspoon | Deploy Hammerspoon Configuration" ansible.builtin.copy: src: "config" dest: "{{ ansible_user_dir }}/.hammerspoon/" @@ -40,7 +40,7 @@ when: hammerspoon_gridlayout_release.status == 200 - name: "Hammerspoon | Install latest GridLayout.spoon" - when: hammerspoon_gridlayout_version.stdout != hammerspoon_gridlayout_latest_version + when: not hammerspoon.stat.exists OR hammerspoon_gridlayout_version != hammerspoon_gridlayout_latest_version block: - name: "Hammerspoon | Download latest GridLayout.spoon" ansible.builtin.uri: