fixing issues
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user