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

@@ -6,9 +6,27 @@
vars:
pkg: go
- name: Depend flatpak
vars:
pkg: flatpak
ansible.builtin.include_tasks:
file: addpkg.yml
- name: Depend node
vars:
pkg: nodejs
ansible.builtin.include_tasks:
file: addpkg.yml
- name: Depend pipx
vars:
pkg: pipx
ansible.builtin.include_tasks:
file: addpkg.yml
- name: Depend cargo
vars:
pkg: cargo
pkg: rust
ansible.builtin.include_tasks:
file: addpkg.yml

View File

@@ -1,44 +1,44 @@
# vim: set filetype=yaml.ansible :
---
- name: Check if archive already exists
- name: Check if go is already installed
ansible.builtin.stat:
path: "{{ paths.archive }}/{{ go_archive }}"
register: stat_go_archive
path: "{{ path.go }}/VERSION"
register: stat_path_go
- name: Check version of installed go
when:
- stat_path_go.stat.exists
ansible.builtin.set_fact:
do_go_install: "{{ not (go.vers in lookup('ansible.builtin.file', path.go ~ '/VERSION')) }}"
- name: Install/update go
when:
- not stat_go_archive.exists
- do_go_install or
not stat_path_go.stat.exists
block:
- name: Download go archive
become: "{{ sys_pkg_become }}"
register: get_url_go
ansible.builtin.get_url:
dest: "{{ paths.cache }}/{{ go_archive }}"
dest: "{{ path.cache }}/{{ go.archive }}"
url: "{{ go.url }}"
checksum: "{{ go.sum }}"
decompress: false
mode: '0644'
register: get_url_go
- name: Ensure go install dir exists
become: "{{ sys_pkg_become }}"
ansible.builtin.file:
path: "{{ go.inst_path }}"
state: directory
mode: '0755'
- name: Extract go package
become: "{{ sys_pkg_become }}"
- name: Extract go package for Linux
become: "{{ ext_become }}"
when:
- ansible_system == 'Linux'
ansible.builtin.unarchive:
dest: "{{ paths.archive }}/go"
src: "{{ d_go_dl_tmp.path }}/{{ go_archive }}"
dest: "{{ path.prefix }}"
src: "{{ d_go_dl_tmp.path }}/{{ go.archive }}"
remote_src: true
- name: Install go macOS use pkg file
- name: Install go macOS using pkg file
become: true
when:
- ansible_system == 'Darwin'
- ansible_distribution == 'MacOSX'
ansible.builtin.command:
creates: "{{ go.inst_path }}"
cmd: "installer -pkg {{ d_go_dl_tmp.path }}/{{ go_archive }} -target /"
creates: "{{ path.go }}"
cmd: "installer -pkg {{ d_go_dl_tmp.path }}/{{ go.archive }} -target /"

View File

@@ -10,7 +10,7 @@
loop_var: font
register: nerdfont_result
ansible.builtin.file:
path: "{{ nerdfonts.install_path }}/{{ font }}"
path: "{{ path.prefix }}/{{ nerdfonts.path }}/{{ font }}"
state: directory
mode: '0755'
@@ -23,7 +23,7 @@
loop_control:
loop_var: font
ansible.builtin.unarchive:
creates: "{{ nerdfonts.install_path }}/{{ font }}/README.md"
creates: "{{ path.prefix }}/{{ nerdfonts.path }}/{{ font }}/README.md"
src: "{{ nerdfonts.base_url }}/{{ font }}.tar.xz"
dest: "{{ nerdfonts.install_path }}/{{ font }}"
dest: "{{ path.prefix }}/{{ nerdfonts.path }}/{{ font }}"
remote_src: true

View File

@@ -2,21 +2,20 @@
---
- name: Set go configuration
ansible.builtin.set_fact:
do_install_go: false # defaults to false to save on having to set facts needlessly
go:
ver: "{{ pkgconfig.go.version }}"
arch: "{{ pkgconfig_go.archmap[ansible_architecture] }}"
sys: "{{ ansible_system | lower }}"
ext: "{{ pkgconfig.go.extmap[ansible_system] }}"
sys: "{{ ansible_system | lower }}"
vers: "{{ pkgconfig.go.version }}"
- name: Set go composite facts
ansible.builtin.set_fact:
go:
ver: "{{ go.ver }}"
arch: "{{ go.arch }}"
sys: "{{ go.sys }}"
ext: "{{ go.ext }}"
archive: "go{{ go.ver }}.{{ go.sys }}-{{ go.arch }}.{{ pkgconfig_go.extmap[ansible_system] }}"
sum: "{{ pkgconfig.go.sums[go.ver][ansible_system][go.arch] }}"
ext: "{{ go.ext }}"
inst_path: "{{ path.install }}/go"
sum: "{{ pkgconfig.go.sums[go.vers][ansible_system][go.arch] }}"
sys: "{{ go.sys }}"
url: "{{ pkgconfig.go.base_url }}/{{ go.archive }}"
inst_path: "{{ paths.install }}/go"
vers: "{{ go.vers }}"

View File

@@ -8,13 +8,16 @@
- name: Set neovim config
ansible.builtin.set_fact:
neovim:
method: "{{ neovim.method }}"
vers: "v{{ pkgconfig.neovim.version }}"
pkgs: "{{ pkgconfig.neovim.pkgs[ansible_distribution] | default(pkgconfig.neovim.pkgs.default) }}"
- name: Set neovim config for appimage install
when:
- neovim.method == 'appimage'
ansible.builtin.set_fact:
neovim:
method: "{{ neovim.method }}"
file: "nvim-linux-{{ ansible_architecture }}.appimage"
link_name: nvim
url: "{{ pkgconfig.neovim.appimage.base_url }}/{{ neovim.vers }}/nvim-linux-{{ ansible_architecture }}.appimage"

View File

@@ -10,6 +10,6 @@
- Lilex
- Monoid
- NerdFontsSymbolsOnly
install_path: "{{ path.prefix }}/{{ pkgconfig.nerdfonts.path }}"
path: "{{ pkgconfig.nerdfonts.path }}"
base_url: "{{ pkgconfig.nerdfonts.base_url }}"
force_install: "{{ pkgconfig.force_install_nerdfonts | default(false) }}"

View File

@@ -0,0 +1,13 @@
- name: Set nextcloud install method
ansible.builtin.set_fact:
nextcloud:
method: "{{ pkgconfig.nextcloud.method | default('flatpak') }}"
- name: Set nextcloud config
when:
- nextcloud.method == 'flatpak'
ansible.builtin.set_fact:
nextcloud:
method: "{{ nextcloud.method }}"
name: "{{ pkgconfig.nextcloud.flatpak.name }}"
remote: "{{ pkgconfig.nextcloud.flatpak.remote }}"

View File

@@ -2,10 +2,10 @@
- name: Install go packages
become: "{{ archive_become }}"
environment:
GOBIN: "{{ paths.bin }}"
PATH: "{{ paths.go }}/bin:$PATH"
GOBIN: "{{ path.bin }}"
PATH: "{{ path.go }}/bin:$PATH"
ansible.builtin.command:
creates: "{{ paths.bin }}/{{ pkg.bin }}"
creates: "{{ path.bin }}/{{ pkg.bin }}"
cmd:
- go
- install

View File

@@ -33,23 +33,31 @@
- name: Flush handlers to ensure dependencies are installed
ansible.builtin.meta: flush_handlers
- name: Add needed MacOS packages
when:
- ansible_distribution == 'MacOSX'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['gnu-tar', 'virtualenv'] }}"
- name: Install sys_pkgs list using system package manager
become: "{{ sys_pkg_become }}"
ansible.builtin.package:
name: "{{ sys_pkgs | unique }}"
name: "{{ pkg_sys | unique }}"
state: present
- name: Linux based OS
when: ansible_system == 'Linux'
- name: Linux specific tasks
when:
- ansible_system == 'Linux'
ansible.builtin.include_tasks:
file: linux.yml
- name: Darwin/macOS based OS
when: ansible_distribution == 'MacOSX'
- name: MacOS specific tasks
when:
- ansible_distribution == 'MacOSX'
ansible.builtin.include_tasks:
file: macos.yml
- name: Install archive_pkgs
- name: Install pkg_archive
when:
- pkg_archive|length > 0
loop: "{{ pkg_archive }}"
@@ -58,7 +66,7 @@
ansible.builtin.include_tasks:
file: "archive/{{ pkg }}.yml"
- name: Install appimages
- name: Install pkg_appimage
when:
- pkg_appimage|length > 0
loop: "{{ pkg_appimage }}"
@@ -69,8 +77,8 @@
- name: Build and install source packages
when:
- src_pkgs|length > 0
loop: "{{ src_pkgs | unique }}"
- pkg_src|length > 0
loop: "{{ pkg_src | unique }}"
loop_control:
loop_var: pkg
ansible.builtin.include_tasks:
@@ -78,8 +86,8 @@
- name: Install cargo packages
when:
- cargo_pkgs|length > 0
loop: "{{ cargo_pkgs | unique }}"
- pkg_cargo|length > 0
loop: "{{ pkg_cargo | unique }}"
loop_control:
loop_var: pkg
ansible.builtin.include_tasks:
@@ -87,24 +95,25 @@
- name: Install go packages
when:
- go_pkgs|length > 0
loop: "{{ go_pkgs | unique }}"
- pkg_go|length > 0
loop: "{{ pkg_go | unique }}"
loop_control:
loop_var: pkg
ansible.builtin.include_tasks:
file: go.yml
- name: Install local npm packages
loop: "{{ npmpkgs | unique }}"
loop: "{{ pkg_npm | unique }}"
loop_control:
loop_var: pkg
ansible.builtin.include_tasks:
file: npm.yml
- name: Install python pipx packages for user
loop: "{{ pipx_pkgs | unique }}"
when:
- pkg_pipx|length > 0
loop: "{{ pkg_pipx | unique }}"
loop_control:
loop_var: pkg
when: pipx_pkgs|length > 0
ansible.builtin.include_tasks:
file: pipx.yml

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'
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"
- name: Append to pkg_cargo
when:
- pkgconfig_rust is undefined
- ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + [ 'gping' ] }}"
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,18 +1,15 @@
# vim: set filetype=yaml.ansible :
---
- name: Linux specific methods
when:
- ansible_system == 'Linux'
block:
- name: Append to flatpkgs
- name: Append to flatpkgs
when:
- libreoffice.method == 'flatpak'
ansible.builtin.set_fact:
flatpkgs: "{{ flatpkgs + libreoffice.flatpak }}"
- name: Append to pkg_sys
- name: Append to pkg_sys
when:
- libreoffice.method == 'sys'
- ansible_system == 'Linux'
ansible.builtin.set_fact:
sys_pkg: "{{ sys_pkg + libreoffice.pkgs }}"

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'
- 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' ] }}"
pkg_sys: "{{ pkg_sys + ['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')
- nvim.method == 'appimage'
ansible.builtin.set_fact:
pkg_appimage: "{{ pkg_appimage + ['neovim'] }}"
- name: Append to appimages
- name: Append neovim to pkg_sys
when:
- nvim.instmtd == 'appimage'
- nvim.method == 'sys'
ansible.builtin.set_fact:
appimages: "{{ appimages + ['neovim'] }}"
- name: Append neovim to syspkgs
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + ['neovim'] }}"
- name: Append neovim to srcpkgs
when:
- nvim.instmtd == 'source'
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'] }}"

View File

@@ -9,3 +9,6 @@ neovim:
Fedora: sys
Ubuntu: sys
MacOSX: sys
pkgs:
default:
- neovim

4
vars/pkgs/nextcloud.yml Normal file
View File

@@ -0,0 +1,4 @@
nextcloud:
flatpak:
name: com.nextcloud.desktopclient.nextcloud
remote: flathub