fix packages
This commit is contained in:
@@ -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 /"
|
||||
|
||||
Reference in New Issue
Block a user