add some rpm packages and more idempotency
This commit is contained in:
+14
-2
@@ -91,9 +91,15 @@
|
||||
when: not starship_binary.stat.exists
|
||||
|
||||
- name: Run Starship installer
|
||||
ansible.builtin.command: /tmp/install_starship.sh -y
|
||||
ansible.builtin.command: /tmp/install_starship.sh -y --bin-dir "{{ user_home }}/.local/bin"
|
||||
become: false
|
||||
when: not starship_binary.stat.exists
|
||||
|
||||
- name: Remove the Starship installer
|
||||
ansible.builtin.file:
|
||||
path: /tmp/install_starship.sh
|
||||
state: absent
|
||||
when: not starship_binary.stat.exists
|
||||
become: true
|
||||
|
||||
- name: Check for Bun
|
||||
ansible.builtin.stat:
|
||||
@@ -112,3 +118,9 @@
|
||||
ansible.builtin.command: /tmp/bun-install.sh
|
||||
become: false
|
||||
when: not bun_binary.stat.exists
|
||||
|
||||
- name: Remove the Bun installer
|
||||
ansible.builtin.file:
|
||||
path: /tmp/bun-install.sh
|
||||
state: absent
|
||||
when: not bun_binary.stat.exists
|
||||
|
||||
Reference in New Issue
Block a user