fix pipx executable

This commit is contained in:
Matthew Stobbs
2025-02-07 10:39:51 -07:00
parent e1141ec8d4
commit c035060ce9

View File

@@ -111,7 +111,10 @@
GOROOT: /usr/local/go
PATH: /usr/local/go/bin:$PATH
ansible.builtin.command:
cmd: "go install {{ ( gopkgs | unique ) | join(' ') }}"
cmd: "go install {{ gopkg }}"
loop: "{{ gopkgs | unique }}"
loop_control:
loop_var: gopkg
when: gopkgs|length > 0
- name: Install local npm packages
@@ -126,6 +129,7 @@
- name: Install python pipx packages for user
community.general.pipx:
executable: "{% if ansible_os_family == 'Darwin' %}/opt/homebrew/bin/pipx{% else %}/usr/bin/pipx{% endif %}"
name: "{{ pipxpkg }}"
state: latest
loop: "{{ pipxpkgs | unique }}"