summaryrefslogtreecommitdiffstats
path: root/roles/gum/tasks
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-02-22 18:56:01 +0100
committerAhmed Abdelhalim <[email protected]>2026-02-22 18:56:01 +0100
commit23d67bbb70291bf3046c57c6768dc1727b1077b2 (patch)
tree95e9f77a898b586de421e451c97a0439dce45d12 /roles/gum/tasks
parent7b8b6a2af4adeba5b2005e449195c1f4e8a136c6 (diff)
Add gum role for beautiful CLIs
Co-Authored-By: claude.ai
Diffstat (limited to 'roles/gum/tasks')
-rw-r--r--roles/gum/tasks/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/gum/tasks/main.yml b/roles/gum/tasks/main.yml
new file mode 100644
index 00000000..6398a40f
--- /dev/null
+++ b/roles/gum/tasks/main.yml
@@ -0,0 +1,11 @@
+---
+- name: "Check if gum is installed"
+ ansible.builtin.stat:
+ path: "{{ ansible_facts['env']['HOME'] }}/go/bin/gum"
+ register: gum_binary
+
+- name: "Install gum via go"
+ ansible.builtin.command:
+ cmd: "/usr/local/go/bin/go install github.com/charmbracelet/gum@latest"
+ when: not gum_binary.stat.exists
+ changed_when: true