more package fixes

This commit is contained in:
Matthew Stobbs
2025-02-21 22:59:24 -07:00
parent 4b995a3c07
commit 852fe8eb7d
71 changed files with 403 additions and 440 deletions

View File

@@ -1,7 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- name: Add to go_pkgs
- name: Add to pkg_go
notify:
- Depend go
ansible.builtin.set_fact:
go_pkgs: "{{ go_pkgs + [air] }}"
pkg_go: "{{ pkg_go + [air] }}"

View File

@@ -15,4 +15,4 @@
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
caskpkgs: "{{ caskpkgs + alacritty.cask }}"
pkg_cask: "{{ pkg_cask + alacritty.cask }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/nodejs.yml
when: nodejs is undefined
- name: add to npmpkgs
- name: Add to pkg_npm
notify:
- Depend node
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['@ansible/ansible-language-server'] }}"
pkg_npm: "{{ pkg_npm + ['@ansible/ansible-language-server'] }}"

View File

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

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/nodejs.yml
when: nodejs is undefined
- name: add to npmpkgs
- name: Add to pkg_npm
notify:
- Depend node
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + [ 'bash-language-server' ] }}"
pkg_npm: "{{ pkg_npm + ['bash-language-server'] }}"

View File

@@ -1,18 +1,20 @@
# vim: set filetype=yaml.ansible :
---
- name: Append to flatpkgs
- name: Append to pkg_flatpak
when:
- bitwarden.method == 'flatpak'
notify:
- Depend flatpak
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [bitwarden.pkg] }}"
- name: Append to srcpkgs
- name: Append to pkg_appimage
when:
- bitwarden.method == 'appimage'
ansible.builtin.set_fact:
pkg_appimage: "{{ pkg_appimage + [bitwarden.pkg] }}"
- name: Append to caskpkgs
- name: Append to pkg_cask
when:
- bitwarden.method == 'brew'
ansible.builtin.set_fact:

View File

@@ -1,11 +1,13 @@
# vim: set filetype=yaml.ansible :
---
- name: Append to pkgs
- name: Append to pkg_sys
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['blender'] }}"
when: ansible_os_family != 'Darwin'
- name: Append to caskpkgs
- name: Append to pkg_cask
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['blender'] }}"
when: ansible_os_family == 'Darwin'

View File

@@ -2,13 +2,13 @@
---
- name: Append to pkg_sys and pkg_cargo
when:
- ansible_os_family != 'Darwin'
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + broot.deps }}"
pkg_cargo: "{{ pkg_cargo + [broot] }}"
- name: Append to pkg_sys
when:
- ansible_os_family == 'Darwin'
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['broot'] }}"

View File

@@ -1,5 +1,5 @@
# vim: set filetype=yaml.ansible :
---
- name: Append to pkgs
- name: Append to pkg_ssys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['btop'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/go.yml
when: pkgconfig_go is undefined
- name: add to gopkgs
- name: Add to pkg_go
notify:
- Depend go
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + ['github.com/bufbuild/buf/cmd/buf@latest'] }}"
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf/cmd/buf@latest'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/go.yml
when: pkgconfig_go is undefined
- name: add to gopkgs
- name: Add to pkg_go
notify:
- Depend go
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + [ 'github.com/bufbuild/buf-language-server/cmd/bufls@latest' ] }}"
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf-language-server/cmd/bufls@latest'] }}"

View File

@@ -1,10 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: "pkgs/go.yml"
when:
- pkgconfig_go is undefined
- name: append to gopkgs
- name: Append to pkg_go
notify:
- Depend go
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + [ 'github.com/cheat/cheat/cmd/cheat@latest' ] }}"
pkg_go: "{{ pkg_go + ['github.com/cheat/cheat/cmd/cheat@latest'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/go.yml
when: pkgconfig_go is undefined
- name: add to gopkgs
- name: Add to pkg_go
notify:
- Depend go
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + ['github.com/mrtazz/checkmake/cmd/checkmake@latest'] }}"
pkg_go: "{{ pkg_go + ['github.com/mrtazz/checkmake/cmd/checkmake@latest'] }}"

View File

@@ -2,12 +2,14 @@
---
- name: Append to cargopkgs
when:
- ansible_os_family != 'Darwin'
- ansible_system == 'Linux'
notify:
- Depend cargo
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + [choose] }}"
- name: Append to pkg_sys
when:
- ansible_os_family == 'Darwin'
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['choose-rust'] }}"

View File

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

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/pipx.yml
when: pipx is undefined
- name: add to pipxpkgs
- name: Add to pkg_pipx
notify:
- Depend pipx
ansible.builtin.set_fact:
pipxpkgs: "{{ pipxpkgs + ['cmakelang'] }}"
pkg_pipx: "{{ pkg_pipx + ['cmakelang'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/nodejs.yml
when: nodejs is undefined
- name: add to npmpkgs
- name: Add to pkg_npm
notify:
- Depend node
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['@commitlint/cli'] }}"
pkg_npm: "{{ pkg_npm + ['@commitlint/cli'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/nodejs.yml
when: nodejs is undefined
- name: add to npmpkgs
- name: Add to pkg_npm
notify:
- Depend node
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['@commitlint/config-conventional'] }}"
pkg_npm: "{{ pkg_npm + ['@commitlint/config-conventional'] }}"

View File

@@ -3,11 +3,15 @@
- name: Append to pkg_sys
when:
- ansible_system == 'Linux'
notify:
- Depend hashicorp repo
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + consul.pkgs }}"
- name: Append to pkg_tap
when:
- ansible_system == 'Darwin'
notify:
- Depend hashicorp repo
ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + consul.pkgs }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/nodejs.yml
when: nodejs is undefined
- name: add to npmpkgs
- name: Add to pkg_npm
notify:
- Depend node
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['vscode-langservers-extracted'] }}"
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"

View File

@@ -1,5 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- name: append to gopkgs
- name: Append to pkg_go
notify:
- Depend go
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + [ 'github.com/rs/curlie@latest' ] }}"
pkg_go: "{{ pkg_go + ['github.com/rs/curlie@latest'] }}"

View File

@@ -1,15 +1,15 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/flatpak.yml
when: flatpkak is undefined
- name: append to flatpkgs
- name: Append to pkg_flatpak
when:
- ansible_system == 'Linux'
notify:
- Depend flatpak
ansible.builtin.set_fact:
flatpkgs: "{{ flatpkgs + [ 'io.dbeaver.DBeaverCommunity' ] }}"
when: ansible_os_family != 'Darwin'
pkg_flatpak: "{{ pkg_flatpak + ['io.dbeaver.DBeaverCommunity'] }}"
- name: append to caskpkgs
- name: Append to pkg_cask
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
caskpkgs: "{{ caskpkgs + [ 'dbeaver-community' ] }}"
when: ansible_os_family == 'Darwin'
pkg_cask: "{{ pkg_cask + ['dbeaver-community'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/nodejs.yml
when: nodejs is undefined
- name: add to npmpkgs
- name: Add to pkg_npm
notify:
- Depend node
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['dockerfile-language-server-nodejs'] }}"
pkg_npm: "{{ pkg_npm + ['dockerfile-language-server-nodejs'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: "pkgs/rust.yml"
when: pkgconfig_rust is undefined
- name: add to cargopkgs
- name: Add to pkg_cargo
notify:
- Depend cargo
ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + [ 'dotenv-linter' ] }}"
pkg_cargo: "{{ pkg_cargo + ['dotenv-linter'] }}"

View File

@@ -1,10 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: "pkgs/go.yml"
when:
- pkgconfig_go is undefined
- name: append to gopkgs
- name: Append to pkg_go
notify:
- Depend go
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + [ 'github.com/muesli/duf@latest' ] }}"
pkg_go: "{{ pkg_go + ['github.com/muesli/duf@latest'] }}"

View File

@@ -1,19 +1,15 @@
# vim: set filetype=yaml.ansible :
---
- name: append to syspkgs
- name: Linux specific install
when:
- ansible_system == 'Linux'
notify:
- Depend cargo
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'dust' ] }}"
pkg_cargo: "{{ pkg_cargo + ['du-dust'] }}"
- name: Append to pkg_sys
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'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['dust'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/nodejs.yml
when: nodejs is undefined
- name: add to npmpkgs
- name: Add to pkg_npm
notify:
- Depend node
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['vscode-langservers-extracted'] }}"
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: "pkgs/rust.yml"
when: pkgconfig_rust is undefined
- name: add to cargopkgs
- name: Add to pkg_cargo
notify:
- Depend cargo
ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + [ 'eza' ] }}"
pkg_cargo: "{{ pkg_cargo + ['eza'] }}"

View File

@@ -1,11 +1,13 @@
# vim: set filetype=yaml.ansible :
---
- name: append to pkgs
- name: Append to pkgs
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'firefox' ] }}"
when: ansible_os_family != 'Darwin'
pkg_sys: "{{ pkg_sys + ['firefox'] }}"
- name: append to caskpkgs
- name: Append to pkg_cask
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
caskpkgs: "{{ caskpkgs + [ 'firefox' ] }}"
when: ansible_os_family == 'Darwin'
pkg_cask: "{{ pkg_cask + ['firefox'] }}"

View File

@@ -1,7 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- name: append to syspkgs
- name: Append to pkg_sys
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'flatpak' ] }}"
flatpak: true
when: ansible_os_family != 'Darwin'
pkg_sys: "{{ pkg_sys + ['flatpak'] }}"

View File

@@ -2,7 +2,9 @@
---
- name: Source pkg installation
when:
- ghostty.method == 'src' or
- ghostty.method == 'src'
notify:
- Depend zig
block:
- name: Build ghostty from source
ansible.builtin.set_fact:

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/go.yml
when: pkgconfig_go is undefined
- name: add to gopkgs
- name: Add to pkg_go
notify:
- Depend go
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + ['github.com/charmbracelet/glow@latest'] }}"
pkg_go: "{{ pkg_go + ['github.com/charmbracelet/glow@latest'] }}"

View File

@@ -2,12 +2,12 @@
---
- name: Install from archive
when:
- prefer_archive
- go.use_archive
ansible.builtin.set_fact:
archive_pkgs: "{{ archive_pkgs + ['go'] }}"
pkg_archive: "{{ pkg_archive + ['go'] }}"
- name: Append to pkgs
when:
- not prefer_archive
- not go.use_archive
ansible.builtin.set_fact:
sys_pkgs: "{{ src_pkgs + ['go'] }}"
pkg_sys: "{{ pkg_sys + ['go'] }}"

View File

@@ -1,16 +1,15 @@
# vim: set filetype=yaml.ansible :
---
- block:
- ansible.builtin.include_tasks:
file: pkgs/flatpak.yml
when: flatpak is undefined
- name: append to flatpkgs
ansible.builtin.set_fact:
flatpkgs: "{{ flatpkgs + [ 'org.godotengine.Godot' ] }}"
- name: Append to pkg_flatpak
when:
- ansible_os_family != 'Darwin'
- name: append to caskpkgs
- ansible_system == 'Linux'
notify:
- Depend flatpak
ansible.builtin.set_fact:
caskpkgs: "{{ caskpkgs + [ 'godot' ] }}"
when: ansible_os_family == 'Darwin'
pkg_flatpak: "{{ pkg_flatpak + ['org.godotengine.Godot'] }}"
- name: Append to pkg_cask
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['godot'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/go.yml
when: pkgconfig_go is undefined
- name: add to gopkgs
- name: Add to pkg_go
notify:
- Depend go
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + ['golang.org/x/tools/gopls@latest'] }}"
pkg_go: "{{ pkg_go + ['golang.org/x/tools/gopls@latest'] }}"

View File

@@ -1,19 +1,15 @@
# vim: set filetype=yaml.ansible :
---
- name: append to syspkgs
- name: Append to pkg_sys
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'gping' ] }}"
when:
- ansible_os_family == 'Darwin'
pkg_sys: "{{ pkg_sys + ['gping'] }}"
- name: linux specific
block:
- ansible.builtin.include_tasks:
file: "pkgs/rust.yml"
when:
- pkgconfig_rust is undefined
- ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + [ 'gping' ] }}"
- name: Append to pkg_cargo
when:
- ansible_os_family != 'Darwin'
- ansible_system == 'Linux'
notify:
- Depend cargo
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['gping'] }}"

View File

@@ -1,3 +0,0 @@
- name: Enable hashicorp repository
ansible.builtin.include_tasks:
file: repos/hashicorp.yml

View File

@@ -1,16 +1,15 @@
# vim: set filetype=yaml.ansible :
---
- block:
- ansible.builtin.include_tasks:
file: pkgs/flatpak.yml
when: flatpak is undefined
- name: append to flatpkgs
ansible.builtin.set_fact:
flatpkgs: "{{ flatpkgs + [ 'com.heroicgameslauncher.hgl' ] }}"
- name: Append to pkg_flatpak
when:
- ansible_os_family != 'Darwin'
- name: append to caskpkgs
- ansible_system == 'Linux'
notify:
- Depend flatpak
ansible.builtin.set_fact:
caskpkgs: "{{ caskpkgs + [ 'heroic' ] }}"
when: ansible_os_family == 'Darwin'
pkg_flatpak: "{{ pkg_flatpak + ['com.heroicgameslauncher.hgl'] }}"
- name: Append to pkg_cask
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['heroic'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/nodejs.yml
when: nodejs is undefined
- name: add to npmpkgs
- name: Add to pkg_npm
notify:
- Depend node
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['vscode-langservers-extracted'] }}"
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"

View File

@@ -1,9 +1,5 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: "pkgs/rust.yml"
when: pkgconfig_rust is undefined
- name: add to cargopkgs
- name: Add to pkg_cargo
ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + [ 'htmx-lsp' ] }}"
pkg_cargo: "{{ pkg_cargo + ['htmx-lsp'] }}"

View File

@@ -1,15 +1,15 @@
# vim: set filetype=yaml.ansible :
---
- block:
- ansible.builtin.include_tasks:
file: pkgs/flatpak.yml
when: flatpak is undefined
- ansible.builtin.set_fact:
flatpkgs: "{{ flatpkgs + [ 'io.httpie.Httpie' ] }}"
when: ansible_os_family != 'Darwin'
- name: append to caskpkgs
- name: Append to pkg_flatpak
when:
- ansible_system == 'Linux'
notify:
- Depend flatpak
ansible.builtin.set_fact:
caskpkgs: "{{ caskpkgs + [ 'httpie' ] }}"
when: ansible_os_family == 'Darwin'
pkg_flatpak: "{{ pkg_flatpak + ['io.httpie.Httpie'] }}"
- name: Append to pkg_cask
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['httpie'] }}"

View File

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

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/nodejs.yml
when: nodejs is undefined
- name: add to npmpkgs
- name: Add to pkg_npm
notify:
- Depend node
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + [ 'intelephense' ] }}"
pkg_npm: "{{ pkg_npm + ['intelephense'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: "pkgs/rust.yml"
when: pkgconfig_rust is undefined
- name: add to cargopkgs
- name: Add to pkg_cargo
notify:
- Depend cargo
ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + [ 'jinja-lsp' ] }}"
pkg_cargo: "{{ pkg_cargo + ['jinja-lsp'] }}"

View File

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

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/nodejs.yml
when: nodejs is undefined
- name: add to npmpkgs
- name: Add to pkg_npm
notify:
- Depend node
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['vscode-langservers-extracted'] }}"
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/go.yml
when: pkgconfig_go is undefined
- name: add to gopkgs
- name: Add to pkg_go
notify:
- Depend go
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + ['github.com/jesseduffield/lazygit@latest'] }}"
pkg_go: "{{ pkg_go + ['github.com/jesseduffield/lazygit@latest'] }}"

View File

@@ -1,20 +1,17 @@
# vim: set filetype=yaml.ansible :
---
- name: Linux specific methods
- name: Append to flatpkgs
when:
- ansible_system == 'Linux'
block:
- name: Append to flatpkgs
when:
- libreoffice.method == 'flatpak'
ansible.builtin.set_fact:
flatpkgs: "{{ flatpkgs + libreoffice.flatpak }}"
- libreoffice.method == 'flatpak'
ansible.builtin.set_fact:
flatpkgs: "{{ flatpkgs + libreoffice.flatpak }}"
- name: Append to pkg_sys
when:
- libreoffice.method == 'sys'
ansible.builtin.set_fact:
sys_pkg: "{{ sys_pkg + libreoffice.pkgs }}"
- name: Append to pkg_sys
when:
- libreoffice.method == 'sys'
- ansible_system == 'Linux'
ansible.builtin.set_fact:
sys_pkg: "{{ sys_pkg + libreoffice.pkgs }}"
- name: Append to caskpkgs
when:

View File

@@ -1,11 +1,13 @@
# vim: set filetype=yaml.ansible :
---
- name: Append to pkgs
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
srcpkgs: "{{ srcpkgs + ['lua-language-server'] }}"
pkg_archive: "{{ pkg_archive + ['luals'] }}"
- name: Append to pkg_sys
when:
- ansible_os_family == 'Darwin'
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['lua-language-server'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/nodejs.yml
when: nodejs is undefined
- name: add to npmpkgs
- name: Add to pkg_npm
notify:
- Depend node
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['markdownlint-cli'] }}"
pkg_npm: "{{ pkg_npm + ['markdownlint-cli'] }}"

View File

@@ -1,19 +1,13 @@
# vim: set filetype=yaml.ansible :
---
- name: append to syspkgs
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'mcfly' ] }}"
- name: Append to pkg_sys
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['mcfly'] }}"
- 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' ] }}"
- name: Add to pkg_cargo
when:
- ansible_os_family != 'Darwin'
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['mcfly'] }}"

View File

@@ -3,11 +3,13 @@
- name: Append to pkgs
when:
- ansible_system == 'Linux'
notify:
- Depend cargo
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + neovide.deps }}"
pkg_cargo: "{{ pkg_cargo + [neovide] }}"
- name: Append neovide to caskpkgs
- name: Append neovide to pkg_cask
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:

View File

@@ -1,50 +1,13 @@
# vim: set filetype=yaml.ansible :
---
- name: Load neovim config
ansible.builtin.include_vars:
file: neovim.yml
name: _neovim
- name: Combine neovim default and user config
ansible.builtin.set_fact:
pkgconfig_neovim: "{{ _neovim | ansible.builtin.combine(pkgconfig.neovim) }}"
- name: Set neovim facts
ansible.builtin.set_fact:
nvim:
appimg: "{{ pkgconfig_neovim.appimage }}"
become: "{{ pkgconfig_neovim.dobecome }}"
bldtype: "{{ pkgconfig_neovim.build_type }}"
group: "{{ pkgconfig_neovim.group }}"
instdir: "{{ pkgconfig_neovim.install_dir }}"
instmtd: "{{ pkgconfig_neovim.install_method }}"
instpfx: "{{ pkgconfig_neovim.install_prefix }}"
owner: "{{ pkgconfig_neovim.owner }}"
ver: "{{ pkgconfig_neovim.version }}"
- name: Linux specific install
- name: Append to appimages
when:
- ansible_system == 'Linux'
block:
# install system package when on an up to date distro
- name: Append to syspkgs
when:
- (ansible_distribution == 'Fedora') or
(ansible_distribution == 'Ubuntu')
- name: Append to appimages
when:
- nvim.instmtd == 'appimage'
ansible.builtin.set_fact:
appimages: "{{ appimages + ['neovim'] }}"
- name: Append neovim to syspkgs
when:
- ansible_os_family == 'Darwin'
- nvim.method == 'appimage'
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + ['neovim'] }}"
pkg_appimage: "{{ pkg_appimage + ['neovim'] }}"
- name: Append neovim to srcpkgs
- name: Append neovim to pkg_sys
when:
- nvim.instmtd == 'source'
- nvim.method == 'sys'
ansible.builtin.set_fact:
srcpkgs: "{{ srcpkgs + ['neovim'] }}"
pkg_sys: "{{ pkg_sys + ['neovim'] }}"

View File

@@ -1,14 +1,16 @@
# vim: set filetype=yaml.ansible :
---
- name: Append to srcpkgs
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['nerdfonts'] }}"
when: ansible_system == 'Linux'
- name: Append to caskpkgs
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + [pkgconfig.nerdfonts.fonts[font].brew] }}"
when:
- ansible_system == 'Darwin'
loop: "{{ nerdfonts.fonts }}"
loop_control:
loop_var: font
when: ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + [pkgconfig.nerdfonts.fonts[font].brew] }}"

View File

@@ -1,17 +1,23 @@
# vim: set filetype=yaml.ansible :
---
- name: append to flatpkgs
block:
- ansible.builtin.include_tasks:
file: pkgs/flatpak.yml
when: flatpak is undefined
- ansible.builtin.set_fact:
flatpkgs: "{{ flatpkgs + [ 'com.nextcloud.desktopclient.nextcloud' ] }}"
- name: Append to pkg_Flatpak
when:
- ansible_os_family != 'Darwin'
- name: append to caskpkgs
- ansible_system == 'Linux'
- nextcloud.method == 'flatpak'
notify:
- Depend flatpak
ansible.builtin.set_fact:
caskpkgs: "{{ caskpkgs + [ 'nextcloud' ] }}"
when: ansible_os_family == 'Darwin'
pkg_flatpak: "{{ pkg_flatpak + [nextcloud] }}"
- name: Append to pkg_sys
when:
- ansible_system == 'Linux'
- nextcloud.method == 'sys'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['nextcloud'] }}"
- name: Append to pkg_cask
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['nextcloud'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/pipx.yml
when: pipx is undefined
- name: add to pipxpkgs
- name: Add to pkg_pipx
notify:
- Depend node
ansible.builtin.set_fact:
pipxpkgs: "{{ pipxpkgs + ['nginx-language-server'] }}"
pkg_pipx: "{{ pkg_pipx + ['nginx-language-server'] }}"

View File

@@ -2,4 +2,4 @@
---
- name: Append to pkgs
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + pkgconfig.nodejs.pkgs[ansible_system] }}"
pkg_sys: "{{ pkg_sys + pkgconfig.nodejs.pkgs[ansible_system] }}"

View File

@@ -1,11 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- name: ensure hashicorp repo is active
ansible.builtin.include_tasks:
file: "pkgs/hashicorp_repo.yml"
when: hashicorp is undefined
- name: append to pkgs
- name: Append to pkgs
notify:
- Depend hashicorp repo
ansible.builtin.set_fact:
tappkgs: "{{ tappkgs + [ pkgconfig.nomad[ansible_system] ] }}"
pkg_tap: "{{ pkg_tap + [pkgconfig.nomad[ansible_system]] }}"

View File

@@ -1,10 +1,15 @@
# vim: set filetype=yaml.ansible :
---
- name: ensure hashicorp repo is active
ansible.builtin.include_tasks:
file: "pkgs/hashicorp_repo.yml"
when: hashicorp is undefined
- name: append to pkgs
- name: Append to pkg_tap
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
tappkgs: "{{ tappkgs + [ pkgconfig.packer[ansible_system] ] }}"
pkg_tap: "{{ pkg_tap + [pkgconfig.packer[ansible_system]] }}"
- name: Append to pkg_sys
when:
- ansible_system == 'Linux'
notify:
- Depend hashicorp repo
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['packer'] }}"

View File

@@ -1,9 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.include_tasks:
file: pkgs/go.yml
when: pkgconfig_go is undefined
- name: add to gopkgs
- name: Add to pkg_go
notify:
- Depends go
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + ['github.com/a-h/templ/cmd/templ@latest'] }}"
pkg_go: "{{ pkg_go + ['github.com/a-h/templ/cmd/templ@latest'] }}"