fix packages

This commit is contained in:
Matthew Stobbs
2025-02-22 14:59:18 -07:00
parent 2d825d855d
commit d1e8957f94
47 changed files with 166 additions and 129 deletions

View File

@@ -20,8 +20,8 @@
become: "{{ sys_pkg_become }}"
register: get_url_go
ansible.builtin.get_url:
dest: "{{ path.cache }}/{{ go.archive }}"
url: "{{ go.url }}"
dest: "{{ d_tempdir.path }}/{{ go.archive }}"
url: "{{ go.base_url }}/{{ go.archive }}"
checksum: "{{ go.sum }}"
decompress: false
mode: '0644'
@@ -32,7 +32,7 @@
- ansible_system == 'Linux'
ansible.builtin.unarchive:
dest: "{{ path.prefix }}"
src: "{{ d_go_dl_tmp.path }}/{{ go.archive }}"
src: "{{ d_tempdir.path }}/{{ go.archive }}"
remote_src: true
- name: Install go macOS using pkg file
@@ -40,5 +40,4 @@
when:
- ansible_distribution == 'MacOSX'
ansible.builtin.command:
creates: "{{ path.go }}"
cmd: "installer -pkg {{ d_go_dl_tmp.path }}/{{ go.archive }} -target /"
cmd: "installer -pkg {{ d_tempdir.path }}/{{ go.archive }} -target /"