working on better pkgconfig

This commit is contained in:
Matthew Stobbs
2025-01-24 17:41:21 -07:00
parent adb9161079
commit f8585192d5
3 changed files with 157 additions and 6 deletions

View File

@@ -15,7 +15,7 @@
- name: set go arch
ansible.builtin.set_fact:
arch: "{{ _go.archmap[ansible_architecture] }}"
- name: set go archive filename
ansible.builtin.set_fact:
go_archive: "go{{ _go.version }}.{{ ansible_system | lower }}-{{ arch }}.{{ _go.extmap[ansible_system] }}"
@@ -23,13 +23,13 @@
- dev
- go
- debug
- name: create temp path
ansible.builtin.tempfile:
state: directory
prefix: go_dl.
register: d_go_dl_tmp
- name: download go archive
become: true
ansible.builtin.get_url:
@@ -40,13 +40,13 @@
tags:
- dev
- go
- name: ensure go install dir exists
become: true
ansible.builtin.file:
path: "{{ _go.install_path }}"
state: directory
- name: extract go package
ansible.builtin.unarchive:
dest: "{{ _go.install_path }}"
@@ -54,7 +54,7 @@
remote_src: true
when: ansible_system == 'Linux'
become: true
- name: install go macOS use pkg file
ansible.builtin.command:
cmd: "installer -pkg {{ d_go_dl_tmp.path }}/{{ go_archive }} -target /"