working on more package, almost done

This commit is contained in:
2026-03-27 20:34:40 -06:00
parent 4a638d9dcc
commit 7f00bb70dc
21 changed files with 122 additions and 80 deletions

View File

@@ -8,7 +8,7 @@
---
- name: Set zig default facts
ansible.builtin.set_fact:
install_methods:
methods:
- archive
- system
version: "{{ zig_version | default('0.15.2') }}"
@@ -21,19 +21,19 @@
block:
- name: Set zig install method
when:
- zig_install_method is undefined
- zig_imethod is undefined
ansible.builtin.set_fact:
zig_install_method: "{{ install_method if install_method in zig.install_methods else zig.install_methods[0] }}"
zig_imethod: "{{ imethod if imethod in zig.methods else zig.methods[0] }}"
- name: Configure zig system install
when:
- zig_install_method == 'system'
- zig_imethod == 'system'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + [zig.pkgname[os_family]] }}"
- name: Configure zig archive install
when:
- zig_install_method == 'archive'
- zig_imethod == 'archive'
block:
- name: Configure zig archive install
ansible.builtin.set_fact: