diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-03-04 14:02:17 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-03-04 14:02:17 +0100 |
| commit | 216f0ec95a87f265d561a0392af6a51a7f8b6dfc (patch) | |
| tree | 4ffe8a11eb01dcdd8a8eec0768c89855595450c3 /roles | |
| parent | aec27231c62426bab38bb92be7bc906d6ff3024e (diff) | |
Fix gum idempotent test failure
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/gum/tasks/main.yml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/roles/gum/tasks/main.yml b/roles/gum/tasks/main.yml index f2172e2c..ff72d2b6 100644 --- a/roles/gum/tasks/main.yml +++ b/roles/gum/tasks/main.yml @@ -1,11 +1,12 @@ --- - name: "Check if gum is installed" - ansible.builtin.stat: - path: "{{ ansible_facts['env']['HOME'] }}/go/bin/gum" - register: gum_binary + ansible.builtin.command: + cmd: "mise ls gum" + register: gum_installed + changed_when: false -- name: "Install gum via go" +- name: "Install gum" ansible.builtin.command: - cmd: "mise exec go -- go install github.com/charmbracelet/gum@latest" - when: not gum_binary.stat.exists + cmd: "mise use --global gum@latest" changed_when: true + when: gum_installed.stdout == '' |
