fix go installation for macos

This commit is contained in:
Matthew Stobbs
2025-01-24 16:45:56 -07:00
parent c3c10323b8
commit ac68bcca9c

View File

@@ -7,7 +7,7 @@
ansible.builtin.set_fact: ansible.builtin.set_fact:
arch: "{{ _go.archmap[ansible_architecture] }}" arch: "{{ _go.archmap[ansible_architecture] }}"
- name: set go Filename - name: set go archive filename
ansible.builtin.set_fact: ansible.builtin.set_fact:
go_archive: "go{{ _go.version }}.{{ ansible_system | lower }}-{{ arch }}.{{ _go.extmap[ansible_system] }}" go_archive: "go{{ _go.version }}.{{ ansible_system | lower }}-{{ arch }}.{{ _go.extmap[ansible_system] }}"
tags: tags:
@@ -48,7 +48,7 @@
- name: install go macOS use pkg file - name: install go macOS use pkg file
ansible.builtin.command: ansible.builtin.command:
cmd: "installer -pkg {{ d_go_dl_tmp.path }}/{{ goFilename }} -target /" cmd: "installer -pkg {{ d_go_dl_tmp.path }}/{{ go_archive }} -target /"
when: ansible_system == 'Darwin' when: ansible_system == 'Darwin'
become: true become: true
tags: tags: