update and fix multiple packages
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
---
|
||||
- ansible.builtin.include_vars:
|
||||
file: zig.yml
|
||||
name: _zig
|
||||
|
||||
- name: download zig archive
|
||||
ansible.builtin.set_fact:
|
||||
zig_pkg: "zig-{{ _zig.sysmap[ansible_system] }}-{{ _zig.archmap[ansible_archtecture] }}-{{ _zig.version }}.tar.xz"
|
||||
zig_pkg: "zig-{{ pkgconfig.zig.sysmap[ansible_system] }}-{{ pkgconfig.zig.archmap[ansible_archtecture] }}-{{ pkgconfig.zig.version }}.tar.xz"
|
||||
|
||||
- name: create temp path
|
||||
ansible.builtin.tempfile:
|
||||
@@ -16,12 +12,12 @@
|
||||
- name: download zig archive
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_zig_dl_tmp.path }}/{{ zig_pkg }}"
|
||||
url: "{{ _zig.base_url }}/{{ zig_pkg }}"
|
||||
url: "{{ pkgconfig.zig.base_url }}/{{ zig_pkg }}"
|
||||
decompress: false
|
||||
|
||||
- name: extract zig package
|
||||
become: true
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ _zig.install_path }}"
|
||||
dest: "{{ pkgconfig.zig.install_path }}"
|
||||
src: "{{ d_zig_dl_tmp.path }}/{{ zig_pkg }}"
|
||||
remote_src: true
|
||||
|
||||
Reference in New Issue
Block a user