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

5
tasks/pkgs/bat.yml Normal file
View File

@@ -0,0 +1,5 @@
# vim: set filetype=yaml.ansible :
---
- name: append to syspkgs
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'bat' ] }}"

20
tasks/pkgs/broot.yml Normal file
View File

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

9
tasks/pkgs/cheat.yml Normal file
View File

@@ -0,0 +1,9 @@
---
- ansible.builtin.include_tasks:
file: "pkgs/go.yml"
when:
- pkgconfig_go is undefined
- name: append to gopkgs
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + [ 'github.com/cheat/cheat/cmd/cheat@latest' ] }}"

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'

4
tasks/pkgs/curlie.yml Normal file
View File

@@ -0,0 +1,4 @@
---
- name: append to gopkgs
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + [ 'github.com/rs/curlie@latest' ] }}"

9
tasks/pkgs/duf.yml Normal file
View File

@@ -0,0 +1,9 @@
---
- ansible.builtin.include_tasks:
file: "pkgs/go.yml"
when:
- pkgconfig_go is undefined
- name: append to gopkgs
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + [ 'github.com/muesli/duf@latest' ] }}"

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

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

4
tasks/pkgs/fd.yml Normal file
View File

@@ -0,0 +1,4 @@
---
- name: append to syspkgs
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + pkgconfig.fd.pkg[ansible_os_family] }}"

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

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

4
tasks/pkgs/hyperfine.yml Normal file
View File

@@ -0,0 +1,4 @@
---
- name: append to syspkgs
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'hyperfine' ] }}"

View File

@@ -1,26 +0,0 @@
# TODO: implement
---
- debug:
msg: unable to install on RedHat distros
when: ansible_os_family == 'RedHat'
- name: append to syspkgs
block:
# - ansible.builtin.tempfile:
# state: directory
# prefix: jellyfin.
# register: d_jellyfin_tmp
#
# - name: get install script
# ansible.builtin.get_url:
# url: https://repo.jellyfin.org/install-debuntu.sh
# dest: "{{ d_jellyfin_tmp.path }}/install-debuntu.sh"
#
- debug:
msg: "TODO: complete install configuration"
when: ansible_os_family == 'Debian'
- name: append to caskpkgs
ansible.builtin.set_fact:
caskpkgs: "{{ caskpkgs + [ 'jellyfin' ] }}"
when: ansible_os_family == 'Darwin'

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

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

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

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

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

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

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

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

View File

@@ -33,9 +33,27 @@ tappkgs: []
pkgconfig: pkgconfig:
alacritty: {} alacritty: {}
bitwarden: {} bitwarden: {}
broot:
deps:
Debian:
- build-essential
- libxcb1-dev
- libxcb-render0-dev
- libxcb-shape0-dev
- libxcb-xfixes0-dev
RedHat:
- libxcb
carapace: {} carapace: {}
clangd: {} clangd: {}
consul: {} consul: {}
fd:
pkg:
Darwin:
- fd
RedHat:
- fd-find
Debian:
- fd-find
ghostty: {} ghostty: {}
git: {} git: {}
go: {} go: {}