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 to pkg_go - name: Add air
notify: when:
- Depend go - air_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_go
pkg_go: "{{ pkg_go + ['github.com/air-verse/air@latest'] }}" notify:
- Depend go
changed_when: true
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/air-verse/air@latest'] }}"
- name: Set air_configured
ansible.builtin.set_fact:
air_configured: true

View File

@@ -1,19 +1,31 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Linux based installation - name: Add alacritty
when: when:
- ansible_system == 'Linux' - alacritty_configured is undefined
block: block:
- name: Append to pkgs - name: Load alacritty configuration
notify: ansible.builtin.include_tasks:
- Depend cargo file: config/alacritty.yml
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + alacritty.deps }}"
pkg_cargo: "{{ pkg_cargo + [alacritty] }}"
- name: Append alacritty to caskpkgs - name: Linux based installation
when: when:
- ansible_system == 'Darwin' - ansible_system == 'Linux'
ansible.builtin.set_fact: block:
pkg_cask: "{{ pkg_cask + alacritty.cask }}" - name: Append to pkgs
notify:
- Depend cargo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + alacritty.deps }}"
pkg_cargo: "{{ pkg_cargo + [alacritty] }}"
- name: Append alacritty to caskpkgs
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
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: Append to pkgs - name: Add ansible_lint
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + ['ansible-lint'] }}" - ansible_lint_configured is undefined
block:
- name: Append to pkgs
ansible.builtin.set_fact:
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 @@
- name: Ensure pkg_deps are added # vim: set filetype=yaml.ansible :
loop: "{{ aquamarine.pkg_deps }}" ---
loop_control: - name: Add aquamarine
loop_var: pkg_dep when:
vars: - aquamarine_configured is undefined
pkg: "{{ pkg_dep }}" block:
ansible.builtin.include_tasks: - name: Load hyprland config
file: addpkg.yml when:
- aquamarine is undefined
ansible.builtin.include_tasks:
file: config/aquamarine.yml
- name: Append to pkg_sys - name: Ensure pkg_deps are added
ansible.builtin.set_fact: loop: "{{ aquamarine.pkg_deps }}"
pkg_sys: "{{ pkg_sys + aquamarine.build_deps }}" loop_control:
pkg_src: "{{ pkg_src + ['aquamarine'] }}" loop_var: aquamarine_pkg_dep
vars:
pkg: "{{ aquamarine_pkg_dep }}"
ansible.builtin.include_tasks:
file: "pkgs/{{ aquamarine_pkg_dep }}.yml"
- name: Append to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + aquamarine.build_deps }}"
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 to pkg_npm - name: Add bashls
notify: when:
- Depend node - bashls_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_npm
pkg_npm: "{{ pkg_npm + ['bash-language-server'] }}" notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
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: Append to pkg_sys - name: Add bat
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + ['bat'] }}" - bat_configured is undefined
block:
- name: Append to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['bat'] }}"
- name: Set bat_configured
ansible.builtin.set_fact:
bat_configured: true

View File

@@ -1,22 +1,34 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_flatpak - name: Add bitwarden
when: when:
- bitwarden.method == 'flatpak' - bitwarden_configured is undefined
notify: block:
- Depend flatpak - name: Load bitwarden config
changed_when: true ansible.builtin.include_tasks:
ansible.builtin.set_fact: file: config/bitwarden.yml
pkg_flatpak: "{{ pkg_flatpak + [bitwarden.pkg] }}"
- name: Append to pkg_appimage - name: Append to pkg_flatpak
when: when:
- bitwarden.method == 'appimage' - bitwarden.method == 'flatpak'
ansible.builtin.set_fact: notify:
pkg_appimage: "{{ pkg_appimage + [bitwarden.pkg] }}" - Depend flatpak
changed_when: true
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [bitwarden.pkg] }}"
- name: Append to pkg_cask - name: Append to pkg_appimage
when: when:
- bitwarden.method == 'brew' - bitwarden.method == 'appimage'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + [bitwarden] }}" pkg_appimage: "{{ pkg_appimage + [bitwarden.pkg] }}"
- name: Append to pkg_cask
when:
- bitwarden.method == 'brew'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + [bitwarden] }}"
- name: Set bitwarden_configured
ansible.builtin.set_fact:
bitwarden_configured: true

View File

@@ -1,13 +1,21 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_sys - name: Add blender
when: when:
- ansible_system == 'Linux' - blender_configured is undefined
ansible.builtin.set_fact: block:
pkg_sys: "{{ pkg_sys + ['blender'] }}" - name: Append to pkg_sys
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['blender'] }}"
- name: Append to pkg_cask - name: Append to pkg_cask
when: when:
- 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,17 +1,29 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_sys and pkg_cargo - name: Add broot
when: when:
- ansible_system == 'Linux' - broot_configured is undefined
notify: block:
- Depend cargo - name: Load broot config
changed_when: true ansible.builtin.include_tasks:
ansible.builtin.set_fact: file: config/broot.yml
pkg_sys: "{{ pkg_sys + broot.deps }}"
pkg_cargo: "{{ pkg_cargo + [broot] }}"
- name: Append to pkg_sys - name: Append to pkg_sys and pkg_cargo
when: when:
- ansible_system == 'Darwin' - ansible_system == 'Linux'
ansible.builtin.set_fact: notify:
pkg_sys: "{{ pkg_sys + ['broot'] }}" - Depend cargo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + broot.deps }}"
pkg_cargo: "{{ pkg_cargo + [broot] }}"
- name: Append to pkg_sys
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
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: Append to pkg_ssys - name: Add btop
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + ['btop'] }}" - btop_configured is undefined
block:
- name: Append to pkg_ssys
ansible.builtin.set_fact:
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 to pkg_go - name: Add buf
notify: when:
- Depend go - buf_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_go
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf/cmd/buf@latest'] }}" notify:
- Depend go
changed_when: true
ansible.builtin.set_fact:
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 to pkg_go - name: Add bufls
notify: when:
- Depend go - bufls_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_go
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf-language-server/cmd/bufls@latest'] }}" notify:
- Depend go
changed_when: true
ansible.builtin.set_fact:
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,27 +1,39 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Enable carapace yum repository - name: Add carapace
when: when:
- ansible_os_family == 'RedHat' - carapace_configured is undefined
become: true block:
ansible.builtin.yum_repository: - name: Load carapace config
name: "{{ carapace.repo.name }}" ansible.builtin.include_tasks:
description: "{{ carapace.repo.description }}" file: config/carapace.yml
baseurl: "{{ carapace.repo.baseurl }}"
enabled: true
gpgcheck: false
state: present
- name: Enable carapace apt repository - name: Enable carapace yum repository
when: when:
- ansible_os_family == 'Debian' - ansible_os_family == 'RedHat'
become: true become: true
ansible.builtin.apt_repository: ansible.builtin.yum_repository:
repo: "{{ carapace.repo.repo }}" name: "{{ carapace.repo.name }}"
filename: "{{ carapace.repo.name }}" description: "{{ carapace.repo.description }}"
state: present baseurl: "{{ carapace.repo.baseurl }}"
update_cache: false enabled: true
gpgcheck: false
state: present
- name: Add carapace to pkg_sys - name: Enable carapace apt repository
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + carapace.pkgs }}" - ansible_os_family == 'Debian'
become: true
ansible.builtin.apt_repository:
repo: "{{ carapace.repo.repo }}"
filename: "{{ carapace.repo.name }}"
state: present
update_cache: false
- name: Add carapace to pkg_sys
ansible.builtin.set_fact:
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: Append to pkg_go - name: Add cheat
notify: when:
- Depend go - cheat_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Append to pkg_go
pkg_go: "{{ pkg_go + ['github.com/cheat/cheat/cmd/cheat@latest'] }}" notify:
- Depend go
changed_when: true
ansible.builtin.set_fact:
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 to pkg_go - name: Add checkmake
notify: when:
- Depend go - checkmake_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_go
pkg_go: "{{ pkg_go + ['github.com/mrtazz/checkmake/cmd/checkmake@latest'] }}" notify:
- Depend go
changed_when: true
ansible.builtin.set_fact:
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,16 +1,28 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to cargopkgs - name: Add choose
when: when:
- ansible_system == 'Linux' - choose_configured is undefined
notify: block:
- Depend cargo - name: Load choose config
changed_when: true ansible.builtin.include_task:
ansible.builtin.set_fact: file: config/choose.yml
pkg_cargo: "{{ pkg_cargo + [choose] }}"
- name: Append to pkg_sys - name: Append to cargopkgs
when: when:
- ansible_system == 'Darwin' - ansible_system == 'Linux'
ansible.builtin.set_fact: notify:
pkg_sys: "{{ pkg_sys + ['choose-rust'] }}" - Depend cargo
changed_when: true
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + [choose] }}"
- name: Append to pkg_sys
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
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: Append clangd to pkg_sys - name: Add clangd
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + clangd.pkgs }}" - clangd_configured is undefined
block:
- name: Load clangd config
ansible.builtin.include_tasks:
file: config/clangd.yml
- name: Append clangd to pkg_sys
ansible.builtin.set_fact:
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: Append to pkgs - name: Add cmake
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + ['cmake'] }}" - cmake_configured is undefined
block:
- name: Append to pkgs
ansible.builtin.set_fact:
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 to pkg_pipx - name: Add cmakelang
notify: when:
- Depend pipx - cmakelang_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_pipx
pkg_pipx: "{{ pkg_pipx + ['cmakelang'] }}" notify:
- Depend pipx
changed_when: true
ansible.builtin.set_fact:
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 to pkg_npm - name: Add commitlint-cli
notify: when:
- Depend node - commitlint_cli_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_npm
pkg_npm: "{{ pkg_npm + ['@commitlint/cli'] }}" notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
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 to pkg_npm - name: Add comitlint-config-conventional
notify: when:
- Depend node - comitlint_config_conventional_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_npm
pkg_npm: "{{ pkg_npm + ['@commitlint/config-conventional'] }}" notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
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,19 +1,31 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_sys - name: Add consul
when: when:
- ansible_system == 'Linux' - consul_configured is undefined
notify: block:
- Depend hashicorp repo - name: Load consul config
changed_when: true ansible.builtin.include_tasks:
ansible.builtin.set_fact: file: config/consul.yml
pkg_sys: "{{ pkg_sys + consul.pkgs }}"
- name: Append to pkg_tap - name: Append to pkg_sys
when: when:
- ansible_system == 'Darwin' - ansible_system == 'Linux'
notify: notify:
- Depend hashicorp repo - Depend hashicorp repo
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + consul.pkgs }}" pkg_sys: "{{ pkg_sys + consul.pkgs }}"
- name: Append to pkg_tap
when:
- ansible_system == 'Darwin'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
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 to pkg_npm - name: Add cssls
notify: when:
- Depend node - cssls_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_npm
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}" notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
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: Append to pkg_go - name: Add curlie
notify: when:
- Depend go - curlie_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Append to pkg_go
pkg_go: "{{ pkg_go + ['github.com/rs/curlie@latest'] }}" notify:
- Depend go
changed_when: true
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/rs/curlie@latest'] }}"
- name: Set curlie_configured
ansible.builtin.set_fact:
curlie_configured: true

View File

@@ -1,16 +1,24 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_flatpak - name: Add dbeaver
when: when:
- ansible_system == 'Linux' - dbeaver_configured is undefined
notify: block:
- Depend flatpak - name: Append to pkg_flatpak
changed_when: true when:
ansible.builtin.set_fact: - ansible_system == 'Linux'
pkg_flatpak: "{{ pkg_flatpak + ['io.dbeaver.DBeaverCommunity'] }}" notify:
- Depend flatpak
changed_when: true
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + ['io.dbeaver.DBeaverCommunity'] }}"
- name: Append to pkg_cask - name: Append to pkg_cask
when: when:
- 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 @@
- name: Append to pkg_sys # vim: set filetype=yaml.ansible :
ansible.builtin.set_fact: ---
pkg_sys: "{{ pkg_sys + ['direnv'] }}" - name: Add direnv
when:
- direnv_configured is undefined
block:
- name: Append to pkg_sys
ansible.builtin.set_fact:
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 to pkg_npm - name: Add dockerls
notify: when:
- Depend node - dockerls_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_npm
pkg_npm: "{{ pkg_npm + ['dockerfile-language-server-nodejs'] }}" notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
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 to pkg_cargo - name: Add dotenv-linter
notify: when:
- Depend cargo - dotenv_linter_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_cargo
pkg_cargo: "{{ pkg_cargo + ['dotenv-linter'] }}" notify:
- Depend cargo
changed_when: true
ansible.builtin.set_fact:
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: Append to pkg_go - name: Add duf
notify: when:
- Depend go - duf_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Append to pkg_go
pkg_go: "{{ pkg_go + ['github.com/muesli/duf@latest'] }}" notify:
- Depend go
changed_when: true
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/muesli/duf@latest'] }}"
- name: Set duf_configured
ansible.builtin.set_fact:
duf_configured: true

View File

@@ -1,16 +1,24 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Linux specific install - name: Add dust
when: when:
- ansible_system == 'Linux' - dust_configured is undefined
notify: block:
- Depend cargo - name: Linux specific install
changed_when: true when:
ansible.builtin.set_fact: - ansible_system == 'Linux'
pkg_cargo: "{{ pkg_cargo + ['du-dust'] }}" notify:
- Depend cargo
changed_when: true
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['du-dust'] }}"
- name: Append to pkg_sys - name: Append to pkg_sys
when: when:
- 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: Append to pkgs - name: Add editorconfig
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + ['editorconfig'] }}" - editorconfig_configured is undefined
block:
- name: Append to pkgs
ansible.builtin.set_fact:
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 to pkg_npm - name: Add eslint
notify: when:
- Depend node - eslint_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_npm
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}" notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
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 to pkg_cargo - name: Add eza
notify: when:
- Depend cargo - eza_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_cargo
pkg_cargo: "{{ pkg_cargo + ['eza'] }}" notify:
- Depend cargo
changed_when: true
ansible.builtin.set_fact:
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: Append to pkg_sys - name: Add fd
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + fd.pkgs }}" - fd_configured is undefined
block:
- name: Load fd config
ansible.builtin.include_tasks:
file: config/fd.yml
- name: Append to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + fd.pkgs }}"
- name: Set fd_configured
ansible.builtin.set_fact:
fd_configured: true

View File

@@ -1,13 +1,21 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkgs - name: Add firefox
when: when:
- ansible_system == 'Linux' - firefox_configured is undefined
ansible.builtin.set_fact: block:
pkg_sys: "{{ pkg_sys + ['firefox'] }}" - name: Append to pkgs
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['firefox'] }}"
- name: Append to pkg_cask - name: Append to pkg_cask
when: when:
- 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: Append to pkg_sys - name: Add flatpak
when: when:
- ansible_system == 'Linux' - flatpak_configured is undefined
ansible.builtin.set_fact: block:
pkg_sys: "{{ pkg_sys + ['flatpak'] }}" - name: Append to pkg_sys
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
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: Append to pkgs - name: Add cmake
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + ['fzf'] }}" - cmake_configured is undefined
block:
- name: Append to pkgs
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['fzf'] }}"
- name: Set cmake_configured
ansible.builtin.set_fact:
cmake_configured: true

View File

@@ -1,40 +1,52 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Source pkg installation - name: Add ghostty
when: when:
- ghostty.method == 'src' - ghostty_configured is undefined
- ansible_distribution != 'MacOSX'
block: block:
- name: Build ghostty from source - name: Load ghostty config
notify: ansible.builtin.include_tasks:
- Depend zig file: config/ghostty.yml
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ghostty.deps }}"
pkg_src: "{{ pkg_src + ['ghostty'] }}"
- name: Appimage installation - name: Source pkg installation
when:
- ghostty.method == 'appimage'
- ansible_distribution != 'MacOSX'
ansible.builtin.set_fact:
pkg_appimage: "{{ pkg_appimage + ghostty_vars.appimage }}"
- name: Sys pkg installation
when:
- ghostty.method == 'sys'
block:
- name: Append to pkgs
when: when:
- ansible_distribution == 'Fedora' - ghostty.method == 'src'
notify: - ansible_distribution != 'MacOSX'
- Depend terra repo block:
changed_when: true - name: Build ghostty from source
ansible.builtin.set_fact: notify:
pkg_sys: "{{ pkg_sys + ['ghostty'] }}" - Depend zig
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ghostty.deps }}"
pkg_src: "{{ pkg_src + ['ghostty'] }}"
- name: Cask pkg installation - name: Appimage installation
when: when:
- ghostty.method == 'brew' - ghostty.method == 'appimage'
ansible.builtin.set_fact: - ansible_distribution != 'MacOSX'
pkg_cask: "{{ pkg_cask + ['ghostty'] }}" ansible.builtin.set_fact:
pkg_appimage: "{{ pkg_appimage + ghostty_vars.appimage }}"
- name: Sys pkg installation
when:
- ghostty.method == 'sys'
block:
- name: Append to pkgs
when:
- ansible_distribution == 'Fedora'
notify:
- Depend terra repo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['ghostty'] }}"
- name: Cask pkg installation
when:
- ghostty.method == 'brew'
ansible.builtin.set_fact:
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: Append to pkgs - name: Add git
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + git.pkgs }}" - git_configured is undefined
block:
- name: Load git config
ansible.builtin.include_tasks:
file: config/git.yml
- name: Append to pkgs
ansible.builtin.set_fact:
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 to pkg_go - name: Add glow
notify: when:
- Depend go - glow_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_go
pkg_go: "{{ pkg_go + ['github.com/charmbracelet/glow@latest'] }}" notify:
- Depend go
changed_when: true
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/charmbracelet/glow@latest'] }}"
- name: Set glow_configured
ansible.builtin.set_fact:
glow_configured: true

View File

@@ -1,12 +1,24 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Install from archive - name: Add go
when: when:
- go.method == 'archive' - go_configured is undefined
ansible.builtin.set_fact: block:
pkg_archive: "{{ pkg_archive + ['go'] }}" - name: Load go config
ansible.builtin.include_tasks:
file: config/go.yml
- name: Append to pkgs - name: Install from archive
- go.method != 'archive' when:
ansible.builtin.set_fact: - go.method == 'archive'
pkg_sys: "{{ pkg_sys + ['go'] }}" ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['go'] }}"
- name: Append to pkgs
- go.method != 'archive'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['go'] }}"
- name: Set go_configured
ansible.builtin.set_fact:
go_configured: true

View File

@@ -1,16 +1,24 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_flatpak - name: Add godot
when: when:
- ansible_system == 'Linux' - godot_configured is undefined
notify: block:
- Depend flatpak - name: Append to pkg_flatpak
changed_when: true when:
ansible.builtin.set_fact: - ansible_system == 'Linux'
pkg_flatpak: "{{ pkg_flatpak + ['org.godotengine.Godot'] }}" notify:
- Depend flatpak
changed_when: true
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + ['org.godotengine.Godot'] }}"
- name: Append to pkg_cask - name: Append to pkg_cask
when: when:
- 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 to pkg_go - name: Add gopls
notify: when:
- Depend go - gopls_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_go
pkg_go: "{{ pkg_go + ['golang.org/x/tools/gopls@latest'] }}" notify:
- Depend go
changed_when: true
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['golang.org/x/tools/gopls@latest'] }}"
- name: Set gopls_configured
ansible.builtin.set_fact:
gopls_configured: true

View File

@@ -1,16 +1,24 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_sys - name: Add gping
when: when:
- ansible_system == 'Darwin' - gping_configured is undefined
ansible.builtin.set_fact: block:
pkg_sys: "{{ pkg_sys + ['gping'] }}" - name: Append to pkg_sys
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['gping'] }}"
- name: Append to pkg_cargo - name: Append to pkg_cargo
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
notify: notify:
- Depend cargo - Depend cargo
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,16 +1,24 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_flatpak - name: Add heroic
when: when:
- ansible_system == 'Linux' - heroic_configured is undefined
notify: block:
- Depend flatpak - name: Append to pkg_flatpak
changed_when: true when:
ansible.builtin.set_fact: - ansible_system == 'Linux'
pkg_flatpak: "{{ pkg_flatpak + ['com.heroicgameslauncher.hgl'] }}" notify:
- Depend flatpak
changed_when: true
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + ['com.heroicgameslauncher.hgl'] }}"
- name: Append to pkg_cask - name: Append to pkg_cask
when: when:
- 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 to pkg_npm - name: Add htmlls
notify: when:
- Depend node - htmlls_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_npm
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}" notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
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 to pkg_cargo - name: Add htmx_lsp
ansible.builtin.set_fact: when:
pkg_cargo: "{{ pkg_cargo + ['htmx-lsp'] }}" - htmx_lsp_configured is undefined
block:
- name: Add to pkg_cargo
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['htmx-lsp'] }}"
- name: Set htmx_lsp_configured
ansible.builtin.set_fact:
htmx_lsp_configured: true

View File

@@ -1,16 +1,28 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_flatpak - name: Add httpie
when: when:
- ansible_system == 'Linux' - httpie_configured is undefined
notify: block:
- Depend flatpak - name: Load httpie config
changed_when: true ansible.builtin.include_tasks:
ansible.builtin.set_fact: file: config/httpie.yml
pkg_flatpak: "{{ pkg_flatpak + [httpie.pkg] }}"
- name: Append to pkg_cask - name: Append to pkg_flatpak
when: when:
- ansible_os_family == 'Darwin' - ansible_system == 'Linux'
ansible.builtin.set_fact: notify:
pkg_cask: "{{ pkg_cask + [httpie.pkg] }}" - Depend flatpak
changed_when: true
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [httpie.pkg] }}"
- name: Append to pkg_cask
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
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: Append to pkgs - name: Add hugo
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + ['hugo'] }}" - hugo_configured is undefined
block:
- name: Append to pkgs
ansible.builtin.set_fact:
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: Append to pkg_sys - name: Add hyperfine
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + ['hyperfine'] }}" - hyperfine_configured is undefined
block:
- name: Append to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['hyperfine'] }}"
- name: Set hyperfine_configured
ansible.builtin.set_fact:
hyperfine_configured: true

View File

@@ -1,4 +1,20 @@
- name: Append to pkg_src # vim: set filetype=yaml.ansible :
ansible.builtin.set_fact: ---
pkg_sys: "{{ pkg_sys + hyprcursor.build_deps }}" - name: Add hyprcursor
pkg_src: "{{ pkg_src + ['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
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + hyprcursor.build_deps }}"
pkg_src: "{{ pkg_src + ['hyprcursor'] }}"
- name: Set hyprcursor_configured
ansible.builtin.set_fact:
hyprcursor_configured: true

View File

@@ -1,4 +1,20 @@
- name: Append to pkg_src # vim: set filetype=yaml.ansible :
ansible.builtin.set_fact: ---
pkg_sys: "{{ pkg_sys + hyprgraphics.build_deps }}" - name: Add hyprgraphics
pkg_src: "{{ pkg_src + ['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
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + hyprgraphics.build_deps }}"
pkg_src: "{{ pkg_src + ['hyprgraphics'] }}"
- name: Set hyprgraphics_configured
ansible.builtin.set_fact:
hyprgraphics_configured: true

View File

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

View File

@@ -1,4 +1,20 @@
- name: Append to pkg lists # vim: set filetype=yaml.ansible :
ansible.builtin.set_fact: ---
pkg_sys: "{{ pkg_sys + hyprland_protocols.build_deps }}" - name: Add hyprland-protocols
pkg_src: "{{ pkg_src + ['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
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + hyprland_protocols.build_deps }}"
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 @@
- name: Ensure pkg_deps are added # vim: set filetype=yaml.ansible :
loop: "{{ hyprlang.pkg_deps }}" ---
loop_control: - name: Add hyprlang
loop_var: pkg_dep when:
vars: - hyprlang_configured
pkg: "{{ pkg_dep }}" block:
ansible.builtin.include_tasks: - name: Load hyprlang config
file: addpkg.yml when:
- hyprlang is undefined
ansible.builtin.include_tasks:
file: config/hyprlang.yml
- name: Append to pkg_src - name: Ensure pkg_deps are added
ansible.builtin.set_fact: loop: "{{ hyprlang.pkg_deps }}"
pkg_sys: "{{ pkg_sys + hyprlang.build_deps }}" loop_control:
pkg_src: "{{ pkg_src + ['hyprlang'] }}" loop_var: hyprlang_pkg_dep
vars:
pkg: "{{ hyprlang_pkg_dep }}"
ansible.builtin.include_tasks:
file: "pkgs/{{ hyprlang_pkg_dep }}.yml"
- name: Append to pkg_src
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + hyprlang.build_deps }}"
pkg_src: "{{ pkg_src + ['hyprlang'] }}"
- name: Set hyprlang_configured
ansible.builtin.set_fact:
hyprlang_configured: true

View File

@@ -1,4 +1,20 @@
- name: Append to pkg_src # vim: set filetype=yaml.ansible :
ansible.builtin.set_fact: ---
pkg_sys: "{{ pkg_sys + hyprutils.build_deps }}" - name: Add hyprutils
pkg_src: "{{ pkg_src + ['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
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + hyprutils.build_deps }}"
pkg_src: "{{ pkg_src + ['hyprutils'] }}"
- name: Set hyprutils_configured
ansible.builtin.set_fact:
hyprutils_configured: true

View File

@@ -1,6 +1,22 @@
- name: Append to pkg_sys and pkg_src # vim: set filetype=yaml.ansible :
---
- name: Add hyprwayland-scanner
when: when:
- ansible_os_family == 'RedHat' - hyprwayland_scanner_configured is undefined
ansible.builtin.set_fact: block:
pkg_sys: "{{ pkg_sys + hyprwayland_scanner.build_deps }}" - name: Load hyprwayland-scanner config
pkg_src: "{{ pkg_src + ['hyprwayland_scanner'] }}" when:
- hyprwayland_scanner is undefined
ansible.builtin.include_tasks:
file: config/hyprwayland_scanner.yml
- name: Append to pkg_sys and pkg_src
when:
- ansible_os_family == 'RedHat'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + hyprwayland_scanner.build_deps }}"
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 to pkg_npm - name: Add intelephense
notify: when:
- Depend node - intelephense_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_npm
pkg_npm: "{{ pkg_npm + ['intelephense'] }}" notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
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 to pkg_cargo - name: Add jinja_lsp
notify: when:
- Depend cargo - jinja_lsp_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_cargo
pkg_cargo: "{{ pkg_cargo + ['jinja-lsp'] }}" notify:
- Depend cargo
changed_when: true
ansible.builtin.set_fact:
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: Append to pkgs - name: Add jq
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + ['jq'] }}" - jq_configured is undefined
block:
- name: Append to pkgs
ansible.builtin.set_fact:
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 to pkg_npm - name: Add jsonls
notify: when:
- Depend node - jsonls_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_npm
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}" notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
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 to pkg_sys - name: Add kitty
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + kitty.pkgs }}" - kitty_configured is undefined
block:
- name: Load kitty config
ansible.builtin.include_tasks:
file: config/kitty.yml
- name: Add to pkg_sys
ansible.builtin.set_fact:
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 to pkg_go - name: Add lazygit
notify: when:
- Depend go - lazygit_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_go
pkg_go: "{{ pkg_go + ['github.com/jesseduffield/lazygit@latest'] }}" notify:
- Depend go
changed_when: true
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/jesseduffield/lazygit@latest'] }}"
- name: Set lazygit_configured
ansible.builtin.set_fact:
lazygit_configured: true

View File

@@ -1,19 +1,31 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_flatpak - name: Add libreoffice
when: when:
- libreoffice.method == 'flatpak' - libreoffice_configured is undefined
ansible.builtin.set_fact: block:
pkg_flatpak: "{{ pkg_flatpak + [libreoffice.flatpak] }}" - name: Load libreoffice config
ansible.builtin.include_tasks:
file: config/libreoffice.yml
- name: Append to pkg_sys - name: Append to pkg_flatpak
when: when:
- libreoffice.method == 'sys' - libreoffice.method == 'flatpak'
ansible.builtin.set_fact: ansible.builtin.set_fact:
sys_pkg: "{{ sys_pkg + libreoffice.pkgs }}" pkg_flatpak: "{{ pkg_flatpak + [libreoffice.flatpak] }}"
- name: Append to caskpkgs - name: Append to pkg_sys
when: when:
- libreoffice.method == 'cask' - libreoffice.method == 'sys'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + libreoffice.pkgs }}" sys_pkg: "{{ sys_pkg + libreoffice.pkgs }}"
- name: Append to caskpkgs
when:
- libreoffice.method == 'cask'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + libreoffice.pkgs }}"
- name: Set libreoffice_configured
ansible.builtin.set_fact:
libreoffice_configured: true

View File

@@ -1,13 +1,25 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkgs - name: Add luals
when: when:
- ansible_system == 'Linux' - luals_configured is undefined
ansible.builtin.set_fact: block:
pkg_archive: "{{ pkg_archive + ['luals'] }}" - name: Load luals config
ansible.builtin.include_tasks:
file: config/luals.yml
- name: Append to pkg_sys - name: Append to pkgs
when: when:
- ansible_system == 'Darwin' - ansible_system == 'Linux'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['lua-language-server'] }}" pkg_archive: "{{ pkg_archive + ['luals'] }}"
- name: Append to pkg_sys
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
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 to pkg_npm - name: Add markdownlint_cli
notify: when:
- Depend node - markdownlint_cli_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_npm
pkg_npm: "{{ pkg_npm + ['markdownlint-cli'] }}" notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['markdownlint-cli'] }}"
- name: Set markdownlint_cli_configured
ansible.builtin.set_fact:
markdownlint_cli_configured: true

View File

@@ -1,13 +1,21 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_sys - name: Add mcfly
when: when:
- ansible_os_family == 'Darwin' - mcfly_configured is undefined
ansible.builtin.set_fact: block:
pkg_sys: "{{ pkg_sys + ['mcfly'] }}" - name: Append to pkg_sys
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['mcfly'] }}"
- name: Add to pkg_cargo - name: Add to pkg_cargo
when: when:
- 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,17 +1,29 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkgs - name: Add neovide
when: when:
- ansible_system == 'Linux' - neovide_configured is undefined
notify: block:
- Depend cargo - name: Load neovide config
changed_when: true ansible.builtin.include_tasks:
ansible.builtin.set_fact: file: config/neovide.yml
pkg_sys: "{{ pkg_sys + neovide.deps }}"
pkg_cargo: "{{ pkg_cargo + [neovide] }}"
- name: Append neovide to pkg_cask - name: Append to pkgs
when: when:
- ansible_system == 'Darwin' - ansible_system == 'Linux'
ansible.builtin.set_fact: notify:
pkg_cask: "{{ pkg_cask + ['neovide'] }}" - Depend cargo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + neovide.deps }}"
pkg_cargo: "{{ pkg_cargo + [neovide] }}"
- name: Append neovide to pkg_cask
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['neovide'] }}"
- name: Set neovide_configured
ansible.builtin.set_fact:
neovide_configured: true

View File

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

View File

@@ -1,16 +1,28 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to srcpkgs - name: Add nerdfonts
when: when:
- ansible_system == 'Linux' - nerdfonts_configured is undefined
ansible.builtin.set_fact: block:
pkg_archive: "{{ pkg_archive + ['nerdfonts'] }}" - name: Load nerdfonts config
ansible.builtin.include_tasks:
file: config/nerdfonts.yml
- name: Append to caskpkgs - name: Append to srcpkgs
when: when:
- ansible_system == 'Darwin' - ansible_system == 'Linux'
loop: "{{ nerdfonts.fonts }}" ansible.builtin.set_fact:
loop_control: pkg_archive: "{{ pkg_archive + ['nerdfonts'] }}"
loop_var: font
ansible.builtin.set_fact: - name: Append to caskpkgs
pkg_cask: "{{ pkg_cask + [pkgconfig.nerdfonts.fonts[font].brew] }}" when:
- ansible_system == 'Darwin'
loop: "{{ nerdfonts.fonts }}"
loop_control:
loop_var: font
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + [pkgconfig.nerdfonts.fonts[font].brew] }}"
- name: Set nerdfonts_configured
ansible.builtin.set_fact:
nerdfonts_configured: true

View File

@@ -1,24 +1,36 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_Flatpak - name: Add nextcloud_client
when: when:
- ansible_system == 'Linux' - nextcloud_client_configured is undefined
- nextcloud.method == 'flatpak' block:
notify: - name: Load nextcloud-client config
- Depend flatpak ansible.builtin.include_tasks:
changed_when: true file: config/nextcloud.yml
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [nextcloud] }}"
- name: Append to pkg_sys - name: Append to pkg_Flatpak
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
- nextcloud.method == 'sys' - nextcloud.method == 'flatpak'
ansible.builtin.set_fact: notify:
pkg_sys: "{{ pkg_sys + ['nextcloud'] }}" - Depend flatpak
changed_when: true
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [nextcloud] }}"
- name: Append to pkg_cask - name: Append to pkg_sys
when: when:
- ansible_os_family == 'Darwin' - ansible_system == 'Linux'
ansible.builtin.set_fact: - nextcloud.method == 'sys'
pkg_cask: "{{ pkg_cask + ['nextcloud'] }}" 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'] }}"
- 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 to pkg_pipx - name: Add nginxls
notify: when:
- Depend node - nginxls_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_pipx
pkg_pipx: "{{ pkg_pipx + ['nginx-language-server'] }}" notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
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: Append to pkgs - name: Add nodejs
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + nodejs.pkgs }}" - nodejs_configured is undefined
block:
- name: Load nodejs config
ansible.builtin.include_tasks:
file: config/nodejs.yml
- name: Append to pkgs
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + nodejs.pkgs }}"
- name: Set nodejs_configured
ansible.builtin.set_fact:
nodejs_configured: true

View File

@@ -1,19 +1,31 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_tap - name: Add nomad
when: when:
- ansible_distribution == 'MacOSX' - nomad_configured is undefined
notify: block:
- Depend hashicorp repo - name: Load nomad config
changed_when: true ansible.builtin.include_tasks:
ansible.builtin.set_fact: file: config/nomad.yml
pkg_tap: "{{ pkg_tap + nomad.pkgs }}"
- name: Append to pkg_sys - name: Append to pkg_tap
when: when:
- ansible_system == 'Linux' - ansible_distribution == 'MacOSX'
notify: notify:
- Depend hashicorp repo - Depend hashicorp repo
changed_when: true changed_when: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + nomad.pkgs }}" pkg_tap: "{{ pkg_tap + nomad.pkgs }}"
- name: Append to pkg_sys
when:
- ansible_system == 'Linux'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + nomad.pkgs }}"
- name: Set nomad_configured
ansible.builtin.set_fact:
nomad_configured: true

View File

@@ -1,16 +1,28 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_tap - name: Add packer
when: when:
- ansible_system == 'Darwin' - packer_configured is undefined
ansible.builtin.set_fact: block:
pkg_tap: "{{ pkg_tap + packer.pkgs }}" - name: Load packer config
ansible.builtin.include_tasks:
file: config/packer.yml
- name: Append to pkg_sys - name: Append to pkg_tap
when: when:
- ansible_system == 'Linux' - ansible_system == 'Darwin'
notify: ansible.builtin.set_fact:
- Depend hashicorp repo pkg_tap: "{{ pkg_tap + packer.pkgs }}"
changed_when: true
ansible.builtin.set_fact: - name: Append to pkg_sys
pkg_sys: "{{ pkg_sys + packer.pkgs }}" when:
- ansible_system == 'Linux'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
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: Append to pkgs - name: Add pandoc
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + ['pandoc'] }}" - pandoc_configured is undefined
block:
- name: Append to pkgs
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['pandoc'] }}"
- name: Set pandoc_configured
ansible.builtin.set_fact:
pandoc_configured: true

View File

@@ -1,16 +1,28 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_flatpak - name: Add pgadmin
when: when:
- pgadmin.method == 'flatpak' - pgadmin_configured is undefined
notify: block:
- Depend flatpak - name: Load pgadmin config
changed_when: true ansible.builtin.include_tasks:
ansible.builtin.set_fact: file: config/pgadmin.yml
pkg_flatpak: "{{ pkg_flatpak + [pgadmin.flatpak] }}"
- name: Append to pkg_cask - name: Append to pkg_flatpak
when: when:
- pgadmin.method == 'cask' - pgadmin.method == 'flatpak'
ansible.builtin.set_fact: notify:
pkg_cask: "{{ pkg_cask + pgadmin.pkgs }}" - Depend flatpak
changed_when: true
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [pgadmin.flatpak] }}"
- name: Append to pkg_cask
when:
- pgadmin.method == 'cask'
ansible.builtin.set_fact:
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: Append to pkgs - name: Add pipx
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + ['pipx'] }}" - pipx_configured is undefined
block:
- name: Append to pkgs
ansible.builtin.set_fact:
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: Append to pkg_sys - name: Add podman
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + ['podman'] }}" - podman_configured is undefined
block:
- name: Append to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['podman'] }}"
- name: Set podman_configured
ansible.builtin.set_fact:
podman_configured: true

View File

@@ -1,3 +1,17 @@
- name: Append pulumit to pkg_archive # vim: set filetype=yaml.ansible :
ansible.builtin.set_fact: ---
pkg_archive: "{{ pkg_archive + ['pulumi'] }}" - 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
ansible.builtin.set_fact:
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 to pkg_pipx - name: Add pyright
notify: when:
- Depend pipx - pyright_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_pipx
pkg_pipx: "{{ pkg_pipx + ['pyright'] }}" notify:
- Depend pipx
changed_when: true
ansible.builtin.set_fact:
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: Append to pkgs - name: Add python3
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + python3.pkgs }}" - python3_configured is undefined
block:
- name: Load python3 config
ansible.builtin.include_tasks:
file: config/python3.yml
- name: Append to pkgs
ansible.builtin.set_fact:
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 to pkg_npm - name: Add quobix_vacuum
notify: when:
- Depend node - quobix_vacuum_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_npm
pkg_npm: "{{ pkg_npm + ['@quobix/vacuum'] }}" notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
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 to pkg_go - name: Add revive
notify: when:
- Depend go - revive_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_go
pkg_go: "{{ pkg_go + ['github.com/mgechev/revive@latest'] }}" notify:
- Depend go
changed_when: true
ansible.builtin.set_fact:
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: Append to pkg_sys - name: Add ripgrep
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + ['ripgrep'] }}" - ripgrep_configured is undefined
block:
- name: Append to pkg_sys
ansible.builtin.set_fact:
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: Append to pkgs - name: Add rust
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + rust.pkgs }}" - rust_configured is undefined
block:
- name: Load rust config
ansible.builtin.include_tasks:
file: config/rust.yml
- name: Append to pkgs
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + rust.pkgs }}"
- name: Set rust_configured
ansible.builtin.set_fact:
rust_configured: true

View File

@@ -1,16 +1,24 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkg_sys - name: Add sd
when: when:
- ansible_system == 'Darwin' - sd_configured is undefined
ansible.builtin.set_fact: block:
pkg_sys: "{{ pkg_sys + ['sd'] }}" - name: Append to pkg_sys
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['sd'] }}"
- name: Add to pkg_cargo - name: Add to pkg_cargo
when: when:
- ansible_system == 'Linux' - ansible_system == 'Linux'
notify: notify:
- Depend cargo - Depend cargo
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 @@
- name: Append to pkg list # vim: set filetype=yaml.ansible :
ansible.builtin.set_fact: ---
pkg_sys: "{{ pkg_sys + sdbus_cpp_2.build_deps }}" - name: Add sdbus_cpp_2
pkg_src: "{{ pkg_src + ['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
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + sdbus_cpp_2.build_deps }}"
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 to pkg_pipx - name: Add sqlfluff
notify: when:
- Depend pipx - sqlfluff_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_pipx
pkg_pipx: "{{ pkg_pipx + ['sqlfluff'] }}" notify:
- Depend pipx
changed_when: true
ansible.builtin.set_fact:
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 to pkg_npm - name: Add sqlls
notify: when:
- Depend node - sqlls_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_npm
pkg_npm: "{{ pkg_npm + ['sql-language-server'] }}" notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
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 to pkg_cargo - name: Add starship
notify: when:
- Depend cargo - starship_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_cargo
pkg_cargo: "{{ pkg_cargo + ['starship'] }}" notify:
- Depend cargo
changed_when: true
ansible.builtin.set_fact:
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: Append to pkg_sys - name: Add stow
ansible.builtin.set_fact: when:
pkg_sys: "{{ pkg_sys + ['stow'] }}" - stow_configured is undefined
block:
- name: Append to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['stow'] }}"
- name: Set stow_configured
ansible.builtin.set_fact:
stow_configured: true

View File

@@ -1,65 +1,77 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Enable for linux - name: Add tailscale
when: when:
- ansible_system == 'Linux' - tailscale_configured is undefined
block: block:
- name: Enable for RedHat distros - name: Load tailscale config
ansible.builtin.include_tasks:
file: config/tailscale.yml
- name: Enable for linux
when: when:
- ansible_os_family == 'RedHat' - ansible_system == 'Linux'
block: block:
- name: Fedora >=41 - name: Enable for RedHat distros
ansible.builtin.command:
creates: /etc/yum.repos.d/tailscale.repo
cmd: "dnf config-manager addrepo --from-repofile={{ tailscale.url_base }}/fedora/tailscale.repo"
become: true
when: when:
- ansible_distribution == 'Fedora' - ansible_os_family == 'RedHat'
- ansible_distribution_major_version|int >= 41
- name: Fedora <41
ansible.builtin.command:
creates: /etc/yum.repos.d/tailscale.repo
cmd: "dnf config-manager --add-repo {{ tailscale.url_base }}/fedora/tailscale.repo"
become: true
when:
- ansible_distribution == 'Fedora'
- ansible_distribution_major_version|int < 41
- name: Rhel based distros
ansible.builtin.command:
creates: /etc/yum.repos.d/tailscale.repo
cmd: "dnf config-manager --add-repo {{ tailscale.url_base }}/rhel/{{ ansible_os_major_version }}/tailscale.repo"
become: true
when:
- ansible_distribution != 'Fedora'
- name: Enable for Debian distros
when:
- ansible_os_family == 'Debian'
block:
- name: Install tailscale keyring
block: block:
- name: Get tailscal keyring - name: Fedora >=41
become: "{{ sys_pkg_become }}" ansible.builtin.command:
ansible.builtin.get_url: creates: /etc/yum.repos.d/tailscale.repo
url: "{{ tailscale.url_base }}/debian/{{ tailscale.release.gpg }}" cmd: "dnf config-manager addrepo --from-repofile={{ tailscale.url_base }}/fedora/tailscale.repo"
dest: /usr/share/keyrings/tailscale-archive-keyring.gpg become: true
mode: '0644' when:
- ansible_distribution == 'Fedora'
- ansible_distribution_major_version|int >= 41
- name: Get tailscale repo list - name: Fedora <41
become: "{{ sys_pkg_become }}" ansible.builtin.command:
ansible.builtin.get_url: creates: /etc/yum.repos.d/tailscale.repo
url: "{{ tailscale.url_base }}/debian/{{ tailscale.release.list }}" cmd: "dnf config-manager --add-repo {{ tailscale.url_base }}/fedora/tailscale.repo"
dest: /etc/apt/sources.list.d/tailscale.list become: true
mode: '0644' when:
- ansible_distribution == 'Fedora'
- ansible_distribution_major_version|int < 41
- name: Append to pkg_sys - name: Rhel based distros
ansible.builtin.command:
creates: /etc/yum.repos.d/tailscale.repo
cmd: "dnf config-manager --add-repo {{ tailscale.url_base }}/rhel/{{ ansible_os_major_version }}/tailscale.repo"
become: true
when:
- ansible_distribution != 'Fedora'
- name: Enable for Debian distros
when:
- ansible_os_family == 'Debian'
block:
- name: Install tailscale keyring
block:
- name: Get tailscal keyring
become: "{{ sys_pkg_become }}"
ansible.builtin.get_url:
url: "{{ tailscale.url_base }}/debian/{{ tailscale.release.gpg }}"
dest: /usr/share/keyrings/tailscale-archive-keyring.gpg
mode: '0644'
- name: Get tailscale repo list
become: "{{ sys_pkg_become }}"
ansible.builtin.get_url:
url: "{{ tailscale.url_base }}/debian/{{ tailscale.release.list }}"
dest: /etc/apt/sources.list.d/tailscale.list
mode: '0644'
- name: Append to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['tailscale'] }}"
- name: Append to pkg_cask
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact: ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['tailscale'] }}" pkg_cask: "{{ pkg_cask + ['tailscale'] }}"
- name: Append to pkg_cask - name: Set tailscale_configured
when: ansible.builtin.set_fact:
- ansible_system == 'Darwin' tailscale_configured: true
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['tailscale'] }}"

View File

@@ -1,8 +1,16 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Add to pkg_npm - name: Add tailwindcss_languageserver
notify: when:
- Depend node - tailwindcss_languageserver_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_npm
pkg_npm: "{{ pkg_npm + ['@tailwindcss/language-server'] }}" notify:
- Depend node
changed_when: true
ansible.builtin.set_fact:
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 to pkg_go - name: Add templ
notify: when:
- Depend go - templ_configured is undefined
changed_when: true block:
ansible.builtin.set_fact: - name: Add to pkg_go
pkg_go: "{{ pkg_go + ['github.com/a-h/templ/cmd/templ@latest'] }}" notify:
- Depend go
changed_when: true
ansible.builtin.set_fact:
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,21 +1,33 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkgs - name: Add terraform
when:
- terraform_configured is undefined
block: block:
- name: MacOSX specific - name: Load terraform config
when: ansible.builtin.include_tasks:
- ansible_distribution == 'MacOSX' file: config/terraform.yml
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + terraform.pkgs }}"
- name: Linux specific - name: Append to pkgs
when: block:
- ansible_system == 'Linux' - name: MacOSX specific
notify: when:
- Depend hashicorp repo - ansible_distribution == 'MacOSX'
changed_when: true notify:
ansible.builtin.set_fact: - Depend hashicorp repo
pkg_sys: "{{ pkg_sys + terraform.pkgs }}" changed_when: true
ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + terraform.pkgs }}"
- name: Linux specific
when:
- ansible_system == 'Linux'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + terraform.pkgs }}"
- name: Set terraform_configured
ansible.builtin.set_fact:
terraform_configured: true

View File

@@ -1,21 +1,33 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Append to pkgs - name: Add terraformls
when:
- terraformls_configured is undefined
block: block:
- name: MacOS specific - name: Load terraformls config
when: ansible.builtin.include_tasks:
- ansible_system == 'Darwin' file: config/terraformls.yml
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + terraformls.pkgs }}"
- name: Linux specific - name: Append to pkgs
when: block:
- ansible_system == 'Linux' - name: MacOS specific
notify: when:
- Depend hashicorp repo - ansible_system == 'Darwin'
changed_when: true notify:
ansible.builtin.set_fact: - Depend hashicorp repo
pkg_sys: "{{ pkg_sys + terraformls.pkgs }}" changed_when: true
ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + terraformls.pkgs }}"
- name: Linux specific
when:
- ansible_system == 'Linux'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
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