add a number of pkgs

- putting package deps and pkgnames in vars/main.yml
This commit is contained in:
Matthew Stobbs
2025-02-09 14:55:38 -07:00
parent b1ba07cf59
commit fc674fe06f
16 changed files with 199 additions and 26 deletions

18
tasks/pkgs/choose.yml Normal file
View File

@@ -0,0 +1,18 @@
---
- name: linux specific
block:
- ansible.builtin.include_tasks:
file: "pkgs/rust.yml"
when:
- pkgconfig_rust is undefined
- name: append to cargopkgs
ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + [ 'choose' ] }}"
when:
- ansible_os_family != 'Darwin'
- name: append to syspkgs
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'choose-rust' ] }}"
when:
- ansible_os_family == 'Darwin'