fixing issues

This commit is contained in:
Matthew Stobbs
2025-02-22 16:09:47 -07:00
parent d1e8957f94
commit a73ed77dac
17 changed files with 63 additions and 68 deletions

View File

@@ -13,11 +13,10 @@
- name: Install/update go
when:
- do_go_install or
- (do_go_install is defined and do_go_install) or
not stat_path_go.stat.exists
block:
- name: Download go archive
become: "{{ sys_pkg_become }}"
register: get_url_go
ansible.builtin.get_url:
dest: "{{ d_tempdir.path }}/{{ go.archive }}"
@@ -31,7 +30,7 @@
when:
- ansible_system == 'Linux'
ansible.builtin.unarchive:
dest: "{{ path.prefix }}"
dest: "{{ go.prefix }}"
src: "{{ d_tempdir.path }}/{{ go.archive }}"
remote_src: true
@@ -40,4 +39,4 @@
when:
- ansible_distribution == 'MacOSX'
ansible.builtin.command:
cmd: "installer -pkg {{ d_tempdir.path }}/{{ go.archive }} -target /"
cmd: "installer -pkg {{ d_tempdir.path }}/{{ go.archive }} -target {{ go.prefix }}"