fix go installation for macos
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
ansible.builtin.set_fact:
|
||||
arch: "{{ _go.archmap[ansible_architecture] }}"
|
||||
|
||||
- name: set go Filename
|
||||
- name: set go archive filename
|
||||
ansible.builtin.set_fact:
|
||||
go_archive: "go{{ _go.version }}.{{ ansible_system | lower }}-{{ arch }}.{{ _go.extmap[ansible_system] }}"
|
||||
tags:
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
- name: install go macOS use pkg file
|
||||
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'
|
||||
become: true
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user