diff --git a/tasks/build/go.yml b/tasks/build/go.yml index 31bb9a3..f1e03be 100644 --- a/tasks/build/go.yml +++ b/tasks/build/go.yml @@ -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: