fixing formatting and dependencies

This commit is contained in:
Matthew Stobbs
2025-01-25 18:45:37 -07:00
parent 391e8ee226
commit 66eaed6e4b
33 changed files with 95 additions and 75 deletions

View File

@@ -19,6 +19,6 @@
srcpkgs: "{{ srcpkgs + [ 'alacritty' ] }}"
- name: append alacritty to caskpkgs
set_fact:
ansible.builtin.set_fact:
caskpkgs: "{{ caskpkgs + [ 'alacritty' ] }}"
when: ansible_system == 'Darwin'

View File

@@ -4,5 +4,5 @@
when: pkgconfig_nodejs not defined
- name: add to npmpkgs
set_fact:
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['@ansible/ansible-language-server'] }}"

View File

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

View File

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

View File

@@ -4,5 +4,5 @@
when: pkgconfig_go not defined
- name: add to gopkgs
set_fact:
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + ['github.com/bufbuild/buf/cmd/buf@latest'] }}"

View File

@@ -4,5 +4,5 @@
when: pkgconfig_go not defined
- name: add to gopkgs
set_fact:
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + ['github.com/mrtazz/checkmake/cmd/checkmake@latest'] }}"

View File

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

View File

@@ -4,5 +4,5 @@
when: pkgconfig_pipx not defined
- name: add to pipxpkgs
set_fact:
ansible.builtin.set_fact:
pipxpkgs: "{{ pipxpkgs + ['cmakelang'] }}"

View File

@@ -4,5 +4,5 @@
when: pkgconfig_nodejs not defined
- name: add to npmpkgs
set_fact:
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['@commitlint/cli'] }}"

View File

@@ -4,5 +4,5 @@
when: pkgconfig_nodejs not defined
- name: add to npmpkgs
set_fact:
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['@commitlint/config-conventional'] }}"

View File

@@ -6,10 +6,10 @@
when: pkgconfig_hashicorp not defined
- name: append to syspkgs
set_fact:
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ pkgconfig_hashicorp.consul[ansible_system] ] }}"
when: ansible_system == 'Linux'
- set_fact:
- ansible.builtin.set_fact:
tappkgs: "{{ tappkgs + [ pkgconfig_hashicorp.consul[ansible_system] ] }}"
when: ansible_system == 'Darwin'

View File

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

View File

@@ -1,3 +1,8 @@
---
- ansible.builtin.include_tasks:
file: pkgs/nodejs.yml
when: pkgconfig_nodejs not defined
- name: add to npmpkgs
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['markdownlint-cli'] }}"

View File

@@ -5,18 +5,16 @@
- ansible.builtin.set_fact:
pkgconfig_neovide: "{{ _neovide | ansible.builtin.combine(pkgconfig.neovide) }}"
- ansible.builtin.include_tasks:
file: "pkgs/{{ pkgdep }}.yml"
loop: "{{ pkgconfig_neovide.local_deps }}"
loop_control:
loop_var: pkgdep
file: pkgs/rust.yml
when: pkgconfig_rust not defined
- name: append to pkgs
when: ansible_system == 'Linux'
set_fact:
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + pkgconfig_neovide.pkgdeps[ansible_os_family] }}"
srcpkgs: "{{ srcpkgs + [ 'neovide' ] }}"
when: ansible_system == 'Linux'
- name: append neovide to caskpkgs
when: ansible_system == 'Darwin'
set_fact:
ansible.builtin.set_fact:
caskpkgs: "{{ caskpkgs + [ 'neovide' ] }}"
when: ansible_system == 'Darwin'

View File

@@ -6,11 +6,11 @@
pkgconfig_neovim: "{{ _neovim | ansible.builtin.combine(pkgconfig.neovim) }}"
- name: append neovim to srcpkgs
when: not pkgconfig_neovim.use_syspkg
set_fact:
ansible.builtin.set_fact:
srcpkgs: "{{ srcpkgs + ['neovim'] }}"
when: not pkgconfig_neovim.use_syspkg
- name: append neovim to syspkgs
when: pkgconfig_neovim.use_syspkg
set_fact:
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + ['neovim'] }}"
when: pkgconfig_neovim.use_syspkg

View File

@@ -6,14 +6,14 @@
pkgconfig_nerdfonts: "{{ _nerdfonts | ansible.builtin.combine(pkgconfig.nerdfons) }}"
- name: append to srcpkgs
when: ansible_system == 'Linux'
set_fact:
ansible.builtin.set_fact:
srcpkgs: "{{ srcpkgs + [ 'nerdfonts' ] }}"
when: ansible_system == 'Linux'
- name: append to caskpkgs
when: ansible_system == 'Darwin'
set_fact:
ansible.builtin.set_fact:
caskpkgs: "{{ caskpkgs + [ pkgconfig_nerdfonts[font].brew ] }}"
loop: "{{ pkgconfig_nerdfonts.install }}"
loop_control:
loop_var: font
when: ansible_system == 'Darwin'

View File

@@ -6,5 +6,5 @@
pkgconfig_nodejs: "{{ _nodejs | ansible.builtin.combine(pkgconfig.nodejs) }}"
- name: append to pkgs
set_fact:
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + pkgconfig_nodejs.pkgs[ansible_system] }}"

View File

@@ -2,8 +2,9 @@
- name: ensure hashicorp repo is active
ansible.builtin.include_tasks:
file: "pkgs/hashicorp_repo.yml"
when: pkgconfig_hashicorp not defined
- name: append to pkgs
set_fact:
ansible.builtin.set_fact:
tappkgs: "{{ tappkgs + [ pkgconfig.hashicorp.nomad[ansible_system] ] }}"

View File

@@ -3,16 +3,17 @@
file: nushell.yml
name: _nushell
- ansible.builtin.set_fact:
pkgconfig:
nushell: "{{ _nushell | ansible.builtin.combine(pkgconfig.nushell) }}"
pkgconfig_nushell: "{{ _nushell | ansible.builtin.combine(pkgconfig.nushell) }}"
- ansible.builtin.include_tasks:
file: "pkgs/{{ dep }}.yml"
loop: "{{ pkgconfig.nushell.deps }}"
loop_control:
loop_var: dep
file: pkgs/rust.yml
when: pkgconfig_rust not defined
- ansible.builtin.include_tasks:
file: pkgs/carapace.yml
when: pkgconfig_carapace not defined
- name: append to pkgs
set_fact:
syspkgs: "{{ syspkgs + pkgsconfig.nushell.build_deps[ansible_os_family] }}"
cargopkgs: "{{ cargopkgs + pkgconfig.nushell.pkgs[ansible_os_family] + pkgconfig.nushell.pkgs_common }}"
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + pkgsconfig_nushell.build_deps[ansible_os_family] }}"
cargopkgs: "{{ cargopkgs + pkgconfig_nushell.pkgs[ansible_os_family] + pkgconfig_nushell.pkgs_common }}"

View File

@@ -2,7 +2,8 @@
- name: ensure hashicorp repo is active
ansible.builtin.include_tasks:
file: "pkgs/hashicorp_repo.yml"
when: pkgconfig_hashicorp not defined
- name: append to pkgs
set_fact:
tappkgs: "{{ tappkgs + [ pkgconfig.hashicorp.packer[ansible_system] ] }}"
ansible.builtin.set_fact:
tappkgs: "{{ tappkgs + [ pkgconfig_hashicorp.packer[ansible_system] ] }}"

View File

@@ -1,6 +1,4 @@
---
- name: append to pkgs
set_fact:
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'pandoc' ] }}"
tags:
- package

View File

@@ -1,6 +1,4 @@
---
- name: append to pkgs
set_fact:
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'pipx' ] }}"
tags:
- package

View File

@@ -3,11 +3,8 @@
file: python3.yml
name: _python3
- ansible.builtin.set_fact:
pkgconfig:
python3: "{{ _python3 | ansible.builtin.combine(pkgconfig.python3) }}"
pkgconfig_python3: "{{ _python3 | ansible.builtin.combine(pkgconfig.python3) }}"
- name: append to pkgs
set_fact:
syspkgs: "{{ syspkgs + pkgconfig.python3.pkgs[ansible_system] }}"
tags:
- packages
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + pkgconfig_python3.pkgs[ansible_system] }}"

View File

@@ -1,3 +1,8 @@
---
- ansible.builtin.include_tasks:
file: pkgs/nodejs.yml
when: pkgconfig_nodejs not defined
- name: add to npmpkgs
set_fact:
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['@quobix/vacuum'] }}"

View File

@@ -1,3 +1,8 @@
---
- ansible.builtin.include_tasks:
file: pkgs/go.yml
when: pkgconfig_go not defined
- name: add to gopkgs
set_fact:
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + ['github.com/mgechev/revive@latest'] }}"

View File

@@ -1,6 +1,4 @@
---
- name: append to pkgs
set_fact:
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'ripgrep' ] }}"
tags:
- packages

View File

@@ -3,11 +3,8 @@
file: rust.yml
name: _rust
- ansible.builtin.set_fact:
pkgconfig:
rust: "{{ _rust | ansible.builtin.combine(pkgconfig.rust) }}"
pkgconfig_rust: "{{ _rust | ansible.builtin.combine(pkgconfig.rust) }}"
- name: append to pkgs
set_fact:
syspkgs: "{{ syspkgs + pkgconfig.rust.pkgs[ansible_system] }}"
tags:
- packages
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + pkgconfig_rust.pkgs[ansible_system] }}"

View File

@@ -1,3 +1,8 @@
---
- ansible.builtin.include_tasks:
file: pkgs/pipx.yml
when: pkgconfig_pipx not defined
- name: add to pipxpkgs
set_fact:
ansible.builtin.set_fact:
pipxpkgs: "{{ pipxpkgs + ['sqlfluff'] }}"

View File

@@ -1,3 +1,9 @@
---
- name: install rust and cargo
ansible.builtin.include_tasks:
file: "pkgs/rust.yml"
when: pkgconfig_rust not defined
- name: add to cargopkgs
set_fact:
ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + [ 'starship' ] }}"

View File

@@ -1,6 +1,4 @@
---
- name: append to pkgs
set_fact:
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'stow' ] }}"
tags:
- packages

View File

@@ -1,3 +1,8 @@
---
- ansible.builtin.include_tasks:
file: pkgs/nodejs.yml
when: pkgconfig_nodejs not defined
- name: add to npmpkgs
set_fact:
ansible.builtin.set_fact:
npmpkgs: "{{ npmpkgs + ['@tailwindcss/language-server'] }}"

View File

@@ -1,3 +1,8 @@
---
- ansible.builtin.include_tasks:
file: pkgs/go.yml
when: pkgconfig_go not defined
- name: add to gopkgs
set_fact:
ansible.builtin.set_fact:
gopkgs: "{{ gopkgs + ['github.com/a-h/templ/cmd/templ@latest'] }}"

View File

@@ -4,8 +4,6 @@ install_prefix: /usr/local
#required variables
git_repo: https://github.com/neovide/neovide.git
local_deps:
- rust
pkgdeps:
RedHat:
- fontconfig-devel