working on more package, almost done
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user