updated tasks so they are only run once

This commit is contained in:
Matthew Stobbs
2025-03-03 12:04:09 -07:00
parent a2718521a5
commit 2ce49c9b85
117 changed files with 2129 additions and 991 deletions

View File

@@ -1,11 +1,5 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: "Load specialized configuration if it exists for {{ pkg }}"
when:
- pkgconfig[pkg] is defined
ansible.builtin.include_tasks:
file: "config/{{ pkg }}.yml"
- name: "Add include task for {{ pkg }}" - name: "Add include task for {{ pkg }}"
ansible.builtin.include_tasks: ansible.builtin.include_tasks:
file: "pkgs/{{ pkg }}.yml" file: "pkgs/{{ pkg }}.yml"

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add air
when:
- air_configured is undefined
block:
- name: Add to pkg_go - name: Add to pkg_go
notify: notify:
- Depend go - Depend go
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/air-verse/air@latest'] }}" pkg_go: "{{ pkg_go + ['github.com/air-verse/air@latest'] }}"
- name: Set air_configured
ansible.builtin.set_fact:
air_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add alacritty
when:
- alacritty_configured is undefined
block:
- name: Load alacritty configuration
ansible.builtin.include_tasks:
file: config/alacritty.yml
- name: Linux based installation - name: Linux based installation
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -17,3 +25,7 @@
- ansible_system == 'Darwin' - ansible_system == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + alacritty.cask }}" pkg_cask: "{{ pkg_cask + alacritty.cask }}"
- name: Set alacritty_configured
ansible.builtin.set_fact:
alacritty_configured: true

View File

@@ -1,8 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add to pkg_npm
notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['@ansible/ansible-language-server'] }}"

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add ansible_lint
when:
- ansible_lint_configured is undefined
block:
- name: Append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['ansible-lint'] }}" pkg_sys: "{{ pkg_sys + ['ansible-lint'] }}"
- name: Set ansible_lint_configured
ansible.builtin.set_fact:
ansible_lint_configured: true

16
tasks/pkgs/ansible_ls.yml Normal file
View File

@@ -0,0 +1,16 @@
# vim: set filetype=yaml.ansible :
---
- name: Add ansible_ls
when:
- ansible_ls_configured is undefined
block:
- name: Add to pkg_npm
notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['@ansible/ansible-language-server'] }}"
- name: Set ansible_ls_configured
ansible.builtin.set_fact:
ansible_ls_configured: true

View File

@@ -1,13 +1,29 @@
# vim: set filetype=yaml.ansible :
---
- name: Add aquamarine
when:
- aquamarine_configured is undefined
block:
- name: Load hyprland config
when:
- aquamarine is undefined
ansible.builtin.include_tasks:
file: config/aquamarine.yml
- name: Ensure pkg_deps are added - name: Ensure pkg_deps are added
loop: "{{ aquamarine.pkg_deps }}" loop: "{{ aquamarine.pkg_deps }}"
loop_control: loop_control:
loop_var: pkg_dep loop_var: aquamarine_pkg_dep
vars: vars:
pkg: "{{ pkg_dep }}" pkg: "{{ aquamarine_pkg_dep }}"
ansible.builtin.include_tasks: ansible.builtin.include_tasks:
file: addpkg.yml file: "pkgs/{{ aquamarine_pkg_dep }}.yml"
- name: Append to pkg_sys - name: Append to pkg_sys
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + aquamarine.build_deps }}" pkg_sys: "{{ pkg_sys + aquamarine.build_deps }}"
pkg_src: "{{ pkg_src + ['aquamarine'] }}" pkg_src: "{{ pkg_src + ['aquamarine'] }}"
- name: Set aquamarine_configured
ansible.builtin.set_fact:
aquamarine_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add bashls
when:
- bashls_configured is undefined
block:
- name: Add to pkg_npm - name: Add to pkg_npm
notify: notify:
- Depend node - Depend node
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['bash-language-server'] }}" pkg_npm: "{{ pkg_npm + ['bash-language-server'] }}"
- name: Set bashls_configured
ansible.builtin.set_fact:
bashls_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add bat
when:
- bat_configured is undefined
block:
- name: Append to pkg_sys - name: Append to pkg_sys
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['bat'] }}" pkg_sys: "{{ pkg_sys + ['bat'] }}"
- name: Set bat_configured
ansible.builtin.set_fact:
bat_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add bitwarden
when:
- bitwarden_configured is undefined
block:
- name: Load bitwarden config
ansible.builtin.include_tasks:
file: config/bitwarden.yml
- name: Append to pkg_flatpak - name: Append to pkg_flatpak
when: when:
- bitwarden.method == 'flatpak' - bitwarden.method == 'flatpak'
@@ -20,3 +28,7 @@
- bitwarden.method == 'brew' - bitwarden.method == 'brew'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + [bitwarden] }}" pkg_cask: "{{ pkg_cask + [bitwarden] }}"
- name: Set bitwarden_configured
ansible.builtin.set_fact:
bitwarden_configured: true

View File

@@ -1,5 +1,9 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add blender
when:
- blender_configured is undefined
block:
- name: Append to pkg_sys - name: Append to pkg_sys
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -11,3 +15,7 @@
- ansible_system == 'Darwin' - ansible_system == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['blender'] }}" pkg_cask: "{{ pkg_cask + ['blender'] }}"
- name: Set bitwarden_configured
ansible.builtin.set_fact:
bitwarden_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add broot
when:
- broot_configured is undefined
block:
- name: Load broot config
ansible.builtin.include_tasks:
file: config/broot.yml
- name: Append to pkg_sys and pkg_cargo - name: Append to pkg_sys and pkg_cargo
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -15,3 +23,7 @@
- ansible_system == 'Darwin' - ansible_system == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['broot'] }}" pkg_sys: "{{ pkg_sys + ['broot'] }}"
- name: Set broot_configured
ansible.builtin.set_fact:
broot_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add btop
when:
- btop_configured is undefined
block:
- name: Append to pkg_ssys - name: Append to pkg_ssys
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['btop'] }}" pkg_sys: "{{ pkg_sys + ['btop'] }}"
- name: Set broot_configured
ansible.builtin.set_fact:
broot_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add buf
when:
- buf_configured is undefined
block:
- name: Add to pkg_go - name: Add to pkg_go
notify: notify:
- Depend go - Depend go
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf/cmd/buf@latest'] }}" pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf/cmd/buf@latest'] }}"
- name: Set buf_configured
ansible.builtin.set_fact:
buf_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add bufls
when:
- bufls_configured is undefined
block:
- name: Add to pkg_go - name: Add to pkg_go
notify: notify:
- Depend go - Depend go
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf-language-server/cmd/bufls@latest'] }}" pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf-language-server/cmd/bufls@latest'] }}"
- name: Set bufls_configured
ansible.builtin.set_fact:
bufls_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add carapace
when:
- carapace_configured is undefined
block:
- name: Load carapace config
ansible.builtin.include_tasks:
file: config/carapace.yml
- name: Enable carapace yum repository - name: Enable carapace yum repository
when: when:
- ansible_os_family == 'RedHat' - ansible_os_family == 'RedHat'
@@ -25,3 +33,7 @@
- name: Add carapace to pkg_sys - name: Add carapace to pkg_sys
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + carapace.pkgs }}" pkg_sys: "{{ pkg_sys + carapace.pkgs }}"
- name: Set carapace_configured
ansible.builtin.set_fact:
carapace_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add cheat
when:
- cheat_configured is undefined
block:
- name: Append to pkg_go - name: Append to pkg_go
notify: notify:
- Depend go - Depend go
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/cheat/cheat/cmd/cheat@latest'] }}" pkg_go: "{{ pkg_go + ['github.com/cheat/cheat/cmd/cheat@latest'] }}"
- name: Set cheat_configured
ansible.builtin.set_fact:
cheat_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add checkmake
when:
- checkmake_configured is undefined
block:
- name: Add to pkg_go - name: Add to pkg_go
notify: notify:
- Depend go - Depend go
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/mrtazz/checkmake/cmd/checkmake@latest'] }}" pkg_go: "{{ pkg_go + ['github.com/mrtazz/checkmake/cmd/checkmake@latest'] }}"
- name: Set checkmake_configured
ansible.builtin.set_fact:
checkmake_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add choose
when:
- choose_configured is undefined
block:
- name: Load choose config
ansible.builtin.include_task:
file: config/choose.yml
- name: Append to cargopkgs - name: Append to cargopkgs
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -14,3 +22,7 @@
- ansible_system == 'Darwin' - ansible_system == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['choose-rust'] }}" pkg_sys: "{{ pkg_sys + ['choose-rust'] }}"
- name: Set choose_configured
ansible.builtin.set_fact:
choose_configured: true

View File

@@ -1,5 +1,17 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add clangd
when:
- clangd_configured is undefined
block:
- name: Load clangd config
ansible.builtin.include_tasks:
file: config/clangd.yml
- name: Append clangd to pkg_sys - name: Append clangd to pkg_sys
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + clangd.pkgs }}" pkg_sys: "{{ pkg_sys + clangd.pkgs }}"
- name: Set clangd_configured
ansible.builtin.set_fact:
clangd_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add cmake
when:
- cmake_configured is undefined
block:
- name: Append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['cmake'] }}" pkg_sys: "{{ pkg_sys + ['cmake'] }}"
- name: Set cmake_configured
ansible.builtin.set_fact:
cmake_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add cmakelang
when:
- cmakelang_configured is undefined
block:
- name: Add to pkg_pipx - name: Add to pkg_pipx
notify: notify:
- Depend pipx - Depend pipx
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_pipx: "{{ pkg_pipx + ['cmakelang'] }}" pkg_pipx: "{{ pkg_pipx + ['cmakelang'] }}"
- name: Set cmakelang_configured
ansible.builtin.set_fact:
cmakelang_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add commitlint-cli
when:
- commitlint_cli_configured is undefined
block:
- name: Add to pkg_npm - name: Add to pkg_npm
notify: notify:
- Depend node - Depend node
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['@commitlint/cli'] }}" pkg_npm: "{{ pkg_npm + ['@commitlint/cli'] }}"
- name: Set commitlint_cli_configured
ansible.builtin.set_fact:
commitlint_cli_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add comitlint-config-conventional
when:
- comitlint_config_conventional_configured is undefined
block:
- name: Add to pkg_npm - name: Add to pkg_npm
notify: notify:
- Depend node - Depend node
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['@commitlint/config-conventional'] }}" pkg_npm: "{{ pkg_npm + ['@commitlint/config-conventional'] }}"
- name: Set comitlint_config_conventional_configured
ansible.builtin.set_fact:
comitlint_config_conventional_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add consul
when:
- consul_configured is undefined
block:
- name: Load consul config
ansible.builtin.include_tasks:
file: config/consul.yml
- name: Append to pkg_sys - name: Append to pkg_sys
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -17,3 +25,7 @@
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + consul.pkgs }}" pkg_tap: "{{ pkg_tap + consul.pkgs }}"
- name: Set consul_configured
ansible.builtin.set_fact:
consul_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add cssls
when:
- cssls_configured is undefined
block:
- name: Add to pkg_npm - name: Add to pkg_npm
notify: notify:
- Depend node - Depend node
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}" pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
- name: Set cssls_configured
ansible.builtin.set_fact:
cssls_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add curlie
when:
- curlie_configured is undefined
block:
- name: Append to pkg_go - name: Append to pkg_go
notify: notify:
- Depend go - Depend go
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/rs/curlie@latest'] }}" pkg_go: "{{ pkg_go + ['github.com/rs/curlie@latest'] }}"
- name: Set curlie_configured
ansible.builtin.set_fact:
curlie_configured: true

View File

@@ -1,5 +1,9 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add dbeaver
when:
- dbeaver_configured is undefined
block:
- name: Append to pkg_flatpak - name: Append to pkg_flatpak
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -14,3 +18,7 @@
- ansible_system == 'Darwin' - ansible_system == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['dbeaver-community'] }}" pkg_cask: "{{ pkg_cask + ['dbeaver-community'] }}"
- name: Set dbeaver_configured
ansible.builtin.set_fact:
dbeaver_configured: true

View File

@@ -1,3 +1,13 @@
# vim: set filetype=yaml.ansible :
---
- name: Add direnv
when:
- direnv_configured is undefined
block:
- name: Append to pkg_sys - name: Append to pkg_sys
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['direnv'] }}" pkg_sys: "{{ pkg_sys + ['direnv'] }}"
- name: Set direnv_configured
ansible.builtin.set_fact:
direnv_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add dockerls
when:
- dockerls_configured is undefined
block:
- name: Add to pkg_npm - name: Add to pkg_npm
notify: notify:
- Depend node - Depend node
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['dockerfile-language-server-nodejs'] }}" pkg_npm: "{{ pkg_npm + ['dockerfile-language-server-nodejs'] }}"
- name: Set dockerls_configured
ansible.builtin.set_fact:
dockerls_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add dotenv-linter
when:
- dotenv_linter_configured is undefined
block:
- name: Add to pkg_cargo - name: Add to pkg_cargo
notify: notify:
- Depend cargo - Depend cargo
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['dotenv-linter'] }}" pkg_cargo: "{{ pkg_cargo + ['dotenv-linter'] }}"
- name: Set dotenv-linter_configured
ansible.builtin.set_fact:
dotenv_linter_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add duf
when:
- duf_configured is undefined
block:
- name: Append to pkg_go - name: Append to pkg_go
notify: notify:
- Depend go - Depend go
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/muesli/duf@latest'] }}" pkg_go: "{{ pkg_go + ['github.com/muesli/duf@latest'] }}"
- name: Set duf_configured
ansible.builtin.set_fact:
duf_configured: true

View File

@@ -1,5 +1,9 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add dust
when:
- dust_configured is undefined
block:
- name: Linux specific install - name: Linux specific install
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -14,3 +18,7 @@
- ansible_os_family == 'Darwin' - ansible_os_family == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['dust'] }}" pkg_sys: "{{ pkg_sys + ['dust'] }}"
- name: Set dust_configured
ansible.builtin.set_fact:
dust_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add editorconfig
when:
- editorconfig_configured is undefined
block:
- name: Append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['editorconfig'] }}" pkg_sys: "{{ pkg_sys + ['editorconfig'] }}"
- name: Set editorconfig_configured
ansible.builtin.set_fact:
editorconfig_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add eslint
when:
- eslint_configured is undefined
block:
- name: Add to pkg_npm - name: Add to pkg_npm
notify: notify:
- Depend node - Depend node
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}" pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
- name: Set eslint_configured
ansible.builtin.set_fact:
eslint_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add eza
when:
- eza_configured is undefined
block:
- name: Add to pkg_cargo - name: Add to pkg_cargo
notify: notify:
- Depend cargo - Depend cargo
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['eza'] }}" pkg_cargo: "{{ pkg_cargo + ['eza'] }}"
- name: Set eza_configured
ansible.builtin.set_fact:
eza_configured: true

View File

@@ -1,5 +1,17 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add fd
when:
- fd_configured is undefined
block:
- name: Load fd config
ansible.builtin.include_tasks:
file: config/fd.yml
- name: Append to pkg_sys - name: Append to pkg_sys
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + fd.pkgs }}" pkg_sys: "{{ pkg_sys + fd.pkgs }}"
- name: Set fd_configured
ansible.builtin.set_fact:
fd_configured: true

View File

@@ -1,5 +1,9 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add firefox
when:
- firefox_configured is undefined
block:
- name: Append to pkgs - name: Append to pkgs
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -11,3 +15,7 @@
- ansible_system == 'Darwin' - ansible_system == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['firefox'] }}" pkg_cask: "{{ pkg_cask + ['firefox'] }}"
- name: Set firefox_configured
ansible.builtin.set_fact:
firefox_configured: true

View File

@@ -1,7 +1,15 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add flatpak
when:
- flatpak_configured is undefined
block:
- name: Append to pkg_sys - name: Append to pkg_sys
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['flatpak'] }}" pkg_sys: "{{ pkg_sys + ['flatpak'] }}"
- name: Set flatpak_configured
ansible.builtin.set_fact:
flatpak_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add cmake
when:
- cmake_configured is undefined
block:
- name: Append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['fzf'] }}" pkg_sys: "{{ pkg_sys + ['fzf'] }}"
- name: Set cmake_configured
ansible.builtin.set_fact:
cmake_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add ghostty
when:
- ghostty_configured is undefined
block:
- name: Load ghostty config
ansible.builtin.include_tasks:
file: config/ghostty.yml
- name: Source pkg installation - name: Source pkg installation
when: when:
- ghostty.method == 'src' - ghostty.method == 'src'
@@ -38,3 +46,7 @@
- ghostty.method == 'brew' - ghostty.method == 'brew'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['ghostty'] }}" pkg_cask: "{{ pkg_cask + ['ghostty'] }}"
- name: Set ghostty_configured
ansible.builtin.set_fact:
ghostty_configured: true

View File

@@ -1,5 +1,17 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add git
when:
- git_configured is undefined
block:
- name: Load git config
ansible.builtin.include_tasks:
file: config/git.yml
- name: Append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + git.pkgs }}" pkg_sys: "{{ pkg_sys + git.pkgs }}"
- name: Set git_configured
ansible.builtin.set_fact:
git_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add glow
when:
- glow_configured is undefined
block:
- name: Add to pkg_go - name: Add to pkg_go
notify: notify:
- Depend go - Depend go
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/charmbracelet/glow@latest'] }}" pkg_go: "{{ pkg_go + ['github.com/charmbracelet/glow@latest'] }}"
- name: Set glow_configured
ansible.builtin.set_fact:
glow_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add go
when:
- go_configured is undefined
block:
- name: Load go config
ansible.builtin.include_tasks:
file: config/go.yml
- name: Install from archive - name: Install from archive
when: when:
- go.method == 'archive' - go.method == 'archive'
@@ -10,3 +18,7 @@
- go.method != 'archive' - go.method != 'archive'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['go'] }}" pkg_sys: "{{ pkg_sys + ['go'] }}"
- name: Set go_configured
ansible.builtin.set_fact:
go_configured: true

View File

@@ -1,5 +1,9 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add godot
when:
- godot_configured is undefined
block:
- name: Append to pkg_flatpak - name: Append to pkg_flatpak
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -14,3 +18,7 @@
- ansible_system == 'Darwin' - ansible_system == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['godot'] }}" pkg_cask: "{{ pkg_cask + ['godot'] }}"
- name: Set godot_configured
ansible.builtin.set_fact:
godot_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add gopls
when:
- gopls_configured is undefined
block:
- name: Add to pkg_go - name: Add to pkg_go
notify: notify:
- Depend go - Depend go
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['golang.org/x/tools/gopls@latest'] }}" pkg_go: "{{ pkg_go + ['golang.org/x/tools/gopls@latest'] }}"
- name: Set gopls_configured
ansible.builtin.set_fact:
gopls_configured: true

View File

@@ -1,5 +1,9 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add gping
when:
- gping_configured is undefined
block:
- name: Append to pkg_sys - name: Append to pkg_sys
when: when:
- ansible_system == 'Darwin' - ansible_system == 'Darwin'
@@ -14,3 +18,7 @@
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['gping'] }}" pkg_cargo: "{{ pkg_cargo + ['gping'] }}"
- name: Set gping_configured
ansible.builtin.set_fact:
gping_configured: true

View File

@@ -1,5 +1,9 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add heroic
when:
- heroic_configured is undefined
block:
- name: Append to pkg_flatpak - name: Append to pkg_flatpak
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -14,3 +18,7 @@
- ansible_os_family == 'Darwin' - ansible_os_family == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['heroic'] }}" pkg_cask: "{{ pkg_cask + ['heroic'] }}"
- name: Set heroic_configured
ansible.builtin.set_fact:
heroic_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add htmlls
when:
- htmlls_configured is undefined
block:
- name: Add to pkg_npm - name: Add to pkg_npm
notify: notify:
- Depend node - Depend node
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}" pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
- name: Set htmlls_configured
ansible.builtin.set_fact:
htmlls_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add htmx_lsp
when:
- htmx_lsp_configured is undefined
block:
- name: Add to pkg_cargo - name: Add to pkg_cargo
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['htmx-lsp'] }}" pkg_cargo: "{{ pkg_cargo + ['htmx-lsp'] }}"
- name: Set htmx_lsp_configured
ansible.builtin.set_fact:
htmx_lsp_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add httpie
when:
- httpie_configured is undefined
block:
- name: Load httpie config
ansible.builtin.include_tasks:
file: config/httpie.yml
- name: Append to pkg_flatpak - name: Append to pkg_flatpak
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -14,3 +22,7 @@
- ansible_os_family == 'Darwin' - ansible_os_family == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + [httpie.pkg] }}" pkg_cask: "{{ pkg_cask + [httpie.pkg] }}"
- name: Set httpie_configured
ansible.builtin.set_fact:
httpie_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add hugo
when:
- hugo_configured is undefined
block:
- name: Append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['hugo'] }}" pkg_sys: "{{ pkg_sys + ['hugo'] }}"
- name: Set hugo_configured
ansible.builtin.set_fact:
hugo_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add hyperfine
when:
- hyperfine_configured is undefined
block:
- name: Append to pkg_sys - name: Append to pkg_sys
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['hyperfine'] }}" pkg_sys: "{{ pkg_sys + ['hyperfine'] }}"
- name: Set hyperfine_configured
ansible.builtin.set_fact:
hyperfine_configured: true

View File

@@ -1,4 +1,20 @@
# vim: set filetype=yaml.ansible :
---
- name: Add hyprcursor
when:
- hyprcursor_configured is undefined
block:
- name: Load hyprcursor config
when:
- hyprcursor is undefined
ansible.builtin.include_tasks:
file: config/hyprcursor.yml
- name: Append to pkg_src - name: Append to pkg_src
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + hyprcursor.build_deps }}" pkg_sys: "{{ pkg_sys + hyprcursor.build_deps }}"
pkg_src: "{{ pkg_src + ['hyprcursor'] }}" pkg_src: "{{ pkg_src + ['hyprcursor'] }}"
- name: Set hyprcursor_configured
ansible.builtin.set_fact:
hyprcursor_configured: true

View File

@@ -1,4 +1,20 @@
# vim: set filetype=yaml.ansible :
---
- name: Add hyprgraphics
when:
- hyprgraphics_configured is undefined
block:
- name: Load hyprgraphics config
when:
- hyprgraphics is undefined
ansible.builtin.include_tasks:
file: config/hyprgraphics.yml
- name: Append to pkg_src - name: Append to pkg_src
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + hyprgraphics.build_deps }}" pkg_sys: "{{ pkg_sys + hyprgraphics.build_deps }}"
pkg_src: "{{ pkg_src + ['hyprgraphics'] }}" pkg_src: "{{ pkg_src + ['hyprgraphics'] }}"
- name: Set hyprgraphics_configured
ansible.builtin.set_fact:
hyprgraphics_configured: true

View File

@@ -1,13 +1,29 @@
# vim: set filetype=yaml.ansible :
---
- name: Add hyprland
when:
- hyprland_configured is undefined
block:
- name: Load hyprland config
when:
- hyprland is undefined
ansible.builtin.include_tasks:
file: config/hyprland.yml
- name: Ensure pkg_deps are added - name: Ensure pkg_deps are added
loop: "{{ hyprland.pkg_deps }}" loop: "{{ hyprland.pkg_deps }}"
loop_control: loop_control:
loop_var: pkg_dep loop_var: hyprland_pkg_dep
vars: vars:
pkg: "{{ pkg_dep }}" pkg: "{{ hyprland_pkg_dep }}"
ansible.builtin.include_tasks: ansible.builtin.include_tasks:
file: addpkg.yml file: "pkgs/{{ hyprland_pkg_dep }}.yml"
- name: Append to pkg_src - name: Append to pkg_src
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + hyprland.build_deps }}" pkg_sys: "{{ pkg_sys + hyprland.build_deps }}"
pkg_src: "{{ pkg_src + ['hyprland'] }}" pkg_src: "{{ pkg_src + ['hyprland'] }}"
- name: Set hyprland_configured
ansible.builtin.set_fact:
hyprland_configured: true

View File

@@ -1,4 +1,20 @@
# vim: set filetype=yaml.ansible :
---
- name: Add hyprland-protocols
when:
- hyprland_protcols_configured is undefined
block:
- name: Load hyprland-protocols config
when:
- hyprland_protocols is undefined
ansible.builtin.include_tasks:
file: config/hyprland_protocols.yml
- name: Append to pkg lists - name: Append to pkg lists
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + hyprland_protocols.build_deps }}" pkg_sys: "{{ pkg_sys + hyprland_protocols.build_deps }}"
pkg_src: "{{ pkg_src + ['hyprland_protocols'] }}" pkg_src: "{{ pkg_src + ['hyprland_protocols'] }}"
- name: Set hyprland_protcols_configured
ansible.builtin.set_fact:
hyprland_protcols_configured: true

View File

@@ -1,13 +1,29 @@
# vim: set filetype=yaml.ansible :
---
- name: Add hyprlang
when:
- hyprlang_configured
block:
- name: Load hyprlang config
when:
- hyprlang is undefined
ansible.builtin.include_tasks:
file: config/hyprlang.yml
- name: Ensure pkg_deps are added - name: Ensure pkg_deps are added
loop: "{{ hyprlang.pkg_deps }}" loop: "{{ hyprlang.pkg_deps }}"
loop_control: loop_control:
loop_var: pkg_dep loop_var: hyprlang_pkg_dep
vars: vars:
pkg: "{{ pkg_dep }}" pkg: "{{ hyprlang_pkg_dep }}"
ansible.builtin.include_tasks: ansible.builtin.include_tasks:
file: addpkg.yml file: "pkgs/{{ hyprlang_pkg_dep }}.yml"
- name: Append to pkg_src - name: Append to pkg_src
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + hyprlang.build_deps }}" pkg_sys: "{{ pkg_sys + hyprlang.build_deps }}"
pkg_src: "{{ pkg_src + ['hyprlang'] }}" pkg_src: "{{ pkg_src + ['hyprlang'] }}"
- name: Set hyprlang_configured
ansible.builtin.set_fact:
hyprlang_configured: true

View File

@@ -1,4 +1,20 @@
# vim: set filetype=yaml.ansible :
---
- name: Add hyprutils
when:
- hyprutils_configured is undefined
block:
- name: Load hyprutils config
when:
- hyprutils is undefined
ansible.builtin.include_tasks:
file: config/hyprutils.yml
- name: Append to pkg_src - name: Append to pkg_src
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + hyprutils.build_deps }}" pkg_sys: "{{ pkg_sys + hyprutils.build_deps }}"
pkg_src: "{{ pkg_src + ['hyprutils'] }}" pkg_src: "{{ pkg_src + ['hyprutils'] }}"
- name: Set hyprutils_configured
ansible.builtin.set_fact:
hyprutils_configured: true

View File

@@ -1,6 +1,22 @@
# vim: set filetype=yaml.ansible :
---
- name: Add hyprwayland-scanner
when:
- hyprwayland_scanner_configured is undefined
block:
- name: Load hyprwayland-scanner config
when:
- hyprwayland_scanner is undefined
ansible.builtin.include_tasks:
file: config/hyprwayland_scanner.yml
- name: Append to pkg_sys and pkg_src - name: Append to pkg_sys and pkg_src
when: when:
- ansible_os_family == 'RedHat' - ansible_os_family == 'RedHat'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + hyprwayland_scanner.build_deps }}" pkg_sys: "{{ pkg_sys + hyprwayland_scanner.build_deps }}"
pkg_src: "{{ pkg_src + ['hyprwayland_scanner'] }}" pkg_src: "{{ pkg_src + ['hyprwayland_scanner'] }}"
- name: Set hyprwayland_scanner_configured
ansible.builtin.set_fact:
hyprwayland_scanner_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add intelephense
when:
- intelephense_configured is undefined
block:
- name: Add to pkg_npm - name: Add to pkg_npm
notify: notify:
- Depend node - Depend node
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['intelephense'] }}" pkg_npm: "{{ pkg_npm + ['intelephense'] }}"
- name: Set intelephense_configured
ansible.builtin.set_fact:
intelephense_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add jinja_lsp
when:
- jinja_lsp_configured is undefined
block:
- name: Add to pkg_cargo - name: Add to pkg_cargo
notify: notify:
- Depend cargo - Depend cargo
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['jinja-lsp'] }}" pkg_cargo: "{{ pkg_cargo + ['jinja-lsp'] }}"
- name: Set jinja_lsp_configured
ansible.builtin.set_fact:
jinja_lsp_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add jq
when:
- jq_configured is undefined
block:
- name: Append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['jq'] }}" pkg_sys: "{{ pkg_sys + ['jq'] }}"
- name: Set jq_configured
ansible.builtin.set_fact:
jq_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add jsonls
when:
- jsonls_configured is undefined
block:
- name: Add to pkg_npm - name: Add to pkg_npm
notify: notify:
- Depend node - Depend node
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}" pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
- name: Set jsonls_configured
ansible.builtin.set_fact:
jsonls_configured: true

View File

@@ -1,5 +1,17 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add kitty
when:
- kitty_configured is undefined
block:
- name: Load kitty config
ansible.builtin.include_tasks:
file: config/kitty.yml
- name: Add to pkg_sys - name: Add to pkg_sys
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + kitty.pkgs }}" pkg_sys: "{{ pkg_sys + kitty.pkgs }}"
- name: Set kitty_configured
ansible.builtin.set_fact:
kitty_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add lazygit
when:
- lazygit_configured is undefined
block:
- name: Add to pkg_go - name: Add to pkg_go
notify: notify:
- Depend go - Depend go
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/jesseduffield/lazygit@latest'] }}" pkg_go: "{{ pkg_go + ['github.com/jesseduffield/lazygit@latest'] }}"
- name: Set lazygit_configured
ansible.builtin.set_fact:
lazygit_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add libreoffice
when:
- libreoffice_configured is undefined
block:
- name: Load libreoffice config
ansible.builtin.include_tasks:
file: config/libreoffice.yml
- name: Append to pkg_flatpak - name: Append to pkg_flatpak
when: when:
- libreoffice.method == 'flatpak' - libreoffice.method == 'flatpak'
@@ -17,3 +25,7 @@
- libreoffice.method == 'cask' - libreoffice.method == 'cask'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + libreoffice.pkgs }}" pkg_cask: "{{ pkg_cask + libreoffice.pkgs }}"
- name: Set libreoffice_configured
ansible.builtin.set_fact:
libreoffice_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add luals
when:
- luals_configured is undefined
block:
- name: Load luals config
ansible.builtin.include_tasks:
file: config/luals.yml
- name: Append to pkgs - name: Append to pkgs
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -11,3 +19,7 @@
- ansible_system == 'Darwin' - ansible_system == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['lua-language-server'] }}" pkg_sys: "{{ pkg_sys + ['lua-language-server'] }}"
- name: Set luals_configured
ansible.builtin.set_fact:
luals_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add markdownlint_cli
when:
- markdownlint_cli_configured is undefined
block:
- name: Add to pkg_npm - name: Add to pkg_npm
notify: notify:
- Depend node - Depend node
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['markdownlint-cli'] }}" pkg_npm: "{{ pkg_npm + ['markdownlint-cli'] }}"
- name: Set markdownlint_cli_configured
ansible.builtin.set_fact:
markdownlint_cli_configured: true

View File

@@ -1,5 +1,9 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add mcfly
when:
- mcfly_configured is undefined
block:
- name: Append to pkg_sys - name: Append to pkg_sys
when: when:
- ansible_os_family == 'Darwin' - ansible_os_family == 'Darwin'
@@ -11,3 +15,7 @@
- ansible_system == 'Linux' - ansible_system == 'Linux'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['mcfly'] }}" pkg_cargo: "{{ pkg_cargo + ['mcfly'] }}"
- name: Set mcfly_configured
ansible.builtin.set_fact:
mcfly_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add neovide
when:
- neovide_configured is undefined
block:
- name: Load neovide config
ansible.builtin.include_tasks:
file: config/neovide.yml
- name: Append to pkgs - name: Append to pkgs
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -15,3 +23,7 @@
- ansible_system == 'Darwin' - ansible_system == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['neovide'] }}" pkg_cask: "{{ pkg_cask + ['neovide'] }}"
- name: Set neovide_configured
ansible.builtin.set_fact:
neovide_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add neovim
when:
- neovim_configured is undefined
block:
- name: Load neovim config
ansible.builtin.include_tasks:
file: config/neovim.yml
- name: Append to appimages - name: Append to appimages
when: when:
- neovim.method == 'appimage' - neovim.method == 'appimage'
@@ -11,3 +19,7 @@
- neovim.method == 'sys' - neovim.method == 'sys'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['neovim'] }}" pkg_sys: "{{ pkg_sys + ['neovim'] }}"
- name: Set neovim_configured
ansible.builtin.set_fact:
neovim_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add nerdfonts
when:
- nerdfonts_configured is undefined
block:
- name: Load nerdfonts config
ansible.builtin.include_tasks:
file: config/nerdfonts.yml
- name: Append to srcpkgs - name: Append to srcpkgs
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -14,3 +22,7 @@
loop_var: font loop_var: font
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + [pkgconfig.nerdfonts.fonts[font].brew] }}" pkg_cask: "{{ pkg_cask + [pkgconfig.nerdfonts.fonts[font].brew] }}"
- name: Set nerdfonts_configured
ansible.builtin.set_fact:
nerdfonts_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add nextcloud_client
when:
- nextcloud_client_configured is undefined
block:
- name: Load nextcloud-client config
ansible.builtin.include_tasks:
file: config/nextcloud.yml
- name: Append to pkg_Flatpak - name: Append to pkg_Flatpak
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -22,3 +30,7 @@
- ansible_os_family == 'Darwin' - ansible_os_family == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['nextcloud'] }}" pkg_cask: "{{ pkg_cask + ['nextcloud'] }}"
- name: Set nextcloud_client_configured
ansible.builtin.set_fact:
nextcloud_client_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add nginxls
when:
- nginxls_configured is undefined
block:
- name: Add to pkg_pipx - name: Add to pkg_pipx
notify: notify:
- Depend node - Depend node
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_pipx: "{{ pkg_pipx + ['nginx-language-server'] }}" pkg_pipx: "{{ pkg_pipx + ['nginx-language-server'] }}"
- name: Set nginxls_configured
ansible.builtin.set_fact:
nginxls_configured: true

View File

@@ -1,5 +1,17 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add nodejs
when:
- nodejs_configured is undefined
block:
- name: Load nodejs config
ansible.builtin.include_tasks:
file: config/nodejs.yml
- name: Append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + nodejs.pkgs }}" pkg_sys: "{{ pkg_sys + nodejs.pkgs }}"
- name: Set nodejs_configured
ansible.builtin.set_fact:
nodejs_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add nomad
when:
- nomad_configured is undefined
block:
- name: Load nomad config
ansible.builtin.include_tasks:
file: config/nomad.yml
- name: Append to pkg_tap - name: Append to pkg_tap
when: when:
- ansible_distribution == 'MacOSX' - ansible_distribution == 'MacOSX'
@@ -17,3 +25,7 @@
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + nomad.pkgs }}" pkg_sys: "{{ pkg_sys + nomad.pkgs }}"
- name: Set nomad_configured
ansible.builtin.set_fact:
nomad_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add packer
when:
- packer_configured is undefined
block:
- name: Load packer config
ansible.builtin.include_tasks:
file: config/packer.yml
- name: Append to pkg_tap - name: Append to pkg_tap
when: when:
- ansible_system == 'Darwin' - ansible_system == 'Darwin'
@@ -14,3 +22,7 @@
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + packer.pkgs }}" pkg_sys: "{{ pkg_sys + packer.pkgs }}"
- name: Set packer_configured
ansible.builtin.set_fact:
packer_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add pandoc
when:
- pandoc_configured is undefined
block:
- name: Append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['pandoc'] }}" pkg_sys: "{{ pkg_sys + ['pandoc'] }}"
- name: Set pandoc_configured
ansible.builtin.set_fact:
pandoc_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add pgadmin
when:
- pgadmin_configured is undefined
block:
- name: Load pgadmin config
ansible.builtin.include_tasks:
file: config/pgadmin.yml
- name: Append to pkg_flatpak - name: Append to pkg_flatpak
when: when:
- pgadmin.method == 'flatpak' - pgadmin.method == 'flatpak'
@@ -14,3 +22,7 @@
- pgadmin.method == 'cask' - pgadmin.method == 'cask'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + pgadmin.pkgs }}" pkg_cask: "{{ pkg_cask + pgadmin.pkgs }}"
- name: Set pgadmin_configured
ansible.builtin.set_fact:
pgadmin_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add pipx
when:
- pipx_configured is undefined
block:
- name: Append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['pipx'] }}" pkg_sys: "{{ pkg_sys + ['pipx'] }}"
- name: Set pipx_configured
ansible.builtin.set_fact:
pipx_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add podman
when:
- podman_configured is undefined
block:
- name: Append to pkg_sys - name: Append to pkg_sys
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['podman'] }}" pkg_sys: "{{ pkg_sys + ['podman'] }}"
- name: Set podman_configured
ansible.builtin.set_fact:
podman_configured: true

View File

@@ -1,3 +1,17 @@
# vim: set filetype=yaml.ansible :
---
- name: Add pulumi
when:
- pulumi_configured is undefined
block:
- name: Load pulumi config
ansible.builtin.include_tasks:
file: config/pulumi.yml
- name: Append pulumit to pkg_archive - name: Append pulumit to pkg_archive
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['pulumi'] }}" pkg_archive: "{{ pkg_archive + ['pulumi'] }}"
- name: Set pulumi_configured
ansible.builtin.set_fact:
pulumi_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add pyright
when:
- pyright_configured is undefined
block:
- name: Add to pkg_pipx - name: Add to pkg_pipx
notify: notify:
- Depend pipx - Depend pipx
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_pipx: "{{ pkg_pipx + ['pyright'] }}" pkg_pipx: "{{ pkg_pipx + ['pyright'] }}"
- name: Set pyright_configured
ansible.builtin.set_fact:
pyright_configured: true

View File

@@ -1,5 +1,17 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add python3
when:
- python3_configured is undefined
block:
- name: Load python3 config
ansible.builtin.include_tasks:
file: config/python3.yml
- name: Append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + python3.pkgs }}" pkg_sys: "{{ pkg_sys + python3.pkgs }}"
- name: Set python3_configured
ansible.builtin.set_fact:
python3_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add quobix_vacuum
when:
- quobix_vacuum_configured is undefined
block:
- name: Add to pkg_npm - name: Add to pkg_npm
notify: notify:
- Depend node - Depend node
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['@quobix/vacuum'] }}" pkg_npm: "{{ pkg_npm + ['@quobix/vacuum'] }}"
- name: Set quobix_vacuum_configured
ansible.builtin.set_fact:
quobix_vacuum_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add revive
when:
- revive_configured is undefined
block:
- name: Add to pkg_go - name: Add to pkg_go
notify: notify:
- Depend go - Depend go
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/mgechev/revive@latest'] }}" pkg_go: "{{ pkg_go + ['github.com/mgechev/revive@latest'] }}"
- name: Set revive_configured
ansible.builtin.set_fact:
revive_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add ripgrep
when:
- ripgrep_configured is undefined
block:
- name: Append to pkg_sys - name: Append to pkg_sys
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['ripgrep'] }}" pkg_sys: "{{ pkg_sys + ['ripgrep'] }}"
- name: Set ripgrep_configured
ansible.builtin.set_fact:
ripgrep_configured: true

View File

@@ -1,5 +1,17 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add rust
when:
- rust_configured is undefined
block:
- name: Load rust config
ansible.builtin.include_tasks:
file: config/rust.yml
- name: Append to pkgs - name: Append to pkgs
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + rust.pkgs }}" pkg_sys: "{{ pkg_sys + rust.pkgs }}"
- name: Set rust_configured
ansible.builtin.set_fact:
rust_configured: true

View File

@@ -1,5 +1,9 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add sd
when:
- sd_configured is undefined
block:
- name: Append to pkg_sys - name: Append to pkg_sys
when: when:
- ansible_system == 'Darwin' - ansible_system == 'Darwin'
@@ -14,3 +18,7 @@
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['sd'] }}" pkg_cargo: "{{ pkg_cargo + ['sd'] }}"
- name: Set sd_configured
ansible.builtin.set_fact:
sd_configured: true

View File

@@ -1,4 +1,20 @@
# vim: set filetype=yaml.ansible :
---
- name: Add sdbus_cpp_2
when:
- sdbus_cpp_2_configured is undefined
block:
- name: Load sdbus-cpp-2 config
when:
- sdbus_cpp_2 is undefined
ansible.builtin.include_tasks:
file: config/sdbus_cpp_2.yml
- name: Append to pkg list - name: Append to pkg list
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + sdbus_cpp_2.build_deps }}" pkg_sys: "{{ pkg_sys + sdbus_cpp_2.build_deps }}"
pkg_src: "{{ pkg_src + ['sdbus_cpp_2'] }}" pkg_src: "{{ pkg_src + ['sdbus_cpp_2'] }}"
- name: Set sdbus_cpp_2_configured
ansible.builtin.set_fact:
sdbus_cpp_2_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add sqlfluff
when:
- sqlfluff_configured is undefined
block:
- name: Add to pkg_pipx - name: Add to pkg_pipx
notify: notify:
- Depend pipx - Depend pipx
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_pipx: "{{ pkg_pipx + ['sqlfluff'] }}" pkg_pipx: "{{ pkg_pipx + ['sqlfluff'] }}"
- name: Set sqlfluff_configured
ansible.builtin.set_fact:
sqlfluff_configured: true

View File

@@ -1,8 +1,16 @@
# vim: filetype=yaml.ansible : # vim: filetype=yaml.ansible :
--- ---
- name: Add sqlls
when:
- sqlls_configured is undefined
block:
- name: Add to pkg_npm - name: Add to pkg_npm
notify: notify:
- Depend node - Depend node
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['sql-language-server'] }}" pkg_npm: "{{ pkg_npm + ['sql-language-server'] }}"
- name: Set sqlls_configured
ansible.builtin.set_fact:
sqlls_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add starship
when:
- starship_configured is undefined
block:
- name: Add to pkg_cargo - name: Add to pkg_cargo
notify: notify:
- Depend cargo - Depend cargo
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['starship'] }}" pkg_cargo: "{{ pkg_cargo + ['starship'] }}"
- name: Set starship_configured
ansible.builtin.set_fact:
starship_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add stow
when:
- stow_configured is undefined
block:
- name: Append to pkg_sys - name: Append to pkg_sys
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['stow'] }}" pkg_sys: "{{ pkg_sys + ['stow'] }}"
- name: Set stow_configured
ansible.builtin.set_fact:
stow_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add tailscale
when:
- tailscale_configured is undefined
block:
- name: Load tailscale config
ansible.builtin.include_tasks:
file: config/tailscale.yml
- name: Enable for linux - name: Enable for linux
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
@@ -63,3 +71,7 @@
- ansible_system == 'Darwin' - ansible_system == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['tailscale'] }}" pkg_cask: "{{ pkg_cask + ['tailscale'] }}"
- name: Set tailscale_configured
ansible.builtin.set_fact:
tailscale_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add tailwindcss_languageserver
when:
- tailwindcss_languageserver_configured is undefined
block:
- name: Add to pkg_npm - name: Add to pkg_npm
notify: notify:
- Depend node - Depend node
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['@tailwindcss/language-server'] }}" pkg_npm: "{{ pkg_npm + ['@tailwindcss/language-server'] }}"
- name: Set tailwindcss_languageserver_configured
ansible.builtin.set_fact:
tailwindcss_languageserver_configured: true

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add templ
when:
- templ_configured is undefined
block:
- name: Add to pkg_go - name: Add to pkg_go
notify: notify:
- Depend go - Depend go
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/a-h/templ/cmd/templ@latest'] }}" pkg_go: "{{ pkg_go + ['github.com/a-h/templ/cmd/templ@latest'] }}"
- name: Set templ_configured
ansible.builtin.set_fact:
templ_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add terraform
when:
- terraform_configured is undefined
block:
- name: Load terraform config
ansible.builtin.include_tasks:
file: config/terraform.yml
- name: Append to pkgs - name: Append to pkgs
block: block:
- name: MacOSX specific - name: MacOSX specific
@@ -19,3 +27,7 @@
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + terraform.pkgs }}" pkg_sys: "{{ pkg_sys + terraform.pkgs }}"
- name: Set terraform_configured
ansible.builtin.set_fact:
terraform_configured: true

View File

@@ -1,5 +1,13 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add terraformls
when:
- terraformls_configured is undefined
block:
- name: Load terraformls config
ansible.builtin.include_tasks:
file: config/terraformls.yml
- name: Append to pkgs - name: Append to pkgs
block: block:
- name: MacOS specific - name: MacOS specific
@@ -19,3 +27,7 @@
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + terraformls.pkgs }}" pkg_sys: "{{ pkg_sys + terraformls.pkgs }}"
- name: Set terraformls_configured
ansible.builtin.set_fact:
terraformls_configured: true

Some files were not shown because too many files have changed in this diff Show More