finished list, now to test them all

This commit is contained in:
Matthew Stobbs
2026-04-13 13:11:50 -06:00
parent 4a44382b01
commit 633a8cad84
163 changed files with 210 additions and 4672 deletions

View File

@@ -1,30 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Get latest lua-language-server
become: "{{ ext_become }}"
ansible.builtin.get_url:
dest: "{{ d_tempdir.path }}/{{ luals.archive }}"
url: "{{ luals.url }}/{{ luals.archive }}"
mode: "0644"
decompress: false
- name: Create install_path
become: "{{ ext_become }}"
ansible.builtin.file:
state: directory
path: "{{ path.archive }}/luals"
mode: "0755"
- name: Extract lua language server archive
become: "{{ ext_become }}"
ansible.builtin.unarchive:
dest: "{{ path.archive }}/luals"
src: "{{ d_tempdir.path }}/{{ luals.archive }}"
remote_src: true
- name: Link lua language server binary
become: "{{ ext_become }}"
ansible.builtin.file:
state: link
path: "{{ path.bin }}/lua-language-server"
src: "{{ path.archive }}/luals/bin/lua-language-server"

View File

@@ -1,15 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Download packer archive
ansible.builtin.get_url:
dest: "{{ d_tempdir.path }}/{{ packer.archive.file }}"
url: "{{ packer.archive.url }}/{{ packer.archive.file }}"
decompress: false
mode: '0644'
- name: Extract packer archive
become: "{{ ext_become }}"
ansible.builtin.unarchive:
dest: "{{ path.archive }}/packer"
src: "{{ d_tempdir.path }}/{{ packer.archive.file }}"
remote_src: true

View File

@@ -1,31 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Check if pulumi is installed
register: stat_pulumi_inst
ansible.builtin.stat:
path: "{{ path.bin }}/pulumi"
- name: Install pulumi if not installed
when:
- not stat_pulumi_inst.stat.exists
block:
- name: Download pulumi archive
ansible.builtin.get_url:
dest: "{{ d_tempdir.path }}/{{ pulumi.archive }}"
url: "{{ pulumi.dlurl }}"
decompress: false
mode: '0644'
- name: Extract pulumi archive
become: "{{ ext_become }}"
ansible.builtin.unarchive:
dest: "{{ path.archive }}"
src: "{{ d_tempdir.path }}/{{ pulumi.archive }}"
remote_src: true
- name: Link pulumi executable
become: "{{ ext_become }}"
ansible.builtin.file:
state: link
src: "{{ path.archive }}/pulumi/pulumi"
path: "{{ path.bin }}/pulumi"

View File

@@ -1,38 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Check if terraform is already installed
register: r_terraform_inst
ansible.builtin.stat:
path: "{{ terraform.bin }}"
- name: Download and install terraform
when:
- not r_terraform_inst.stat.exists
block:
- name: Download terraform archive
ansible.builtin.get_url:
dest: "{{ d_tempdir.path }}/{{ terraform.archive }}"
url: "{{ terraform.url }}/{{ terraform.archive }}"
mode: '0644'
decompress: false
- name: Ensure vault archive dir exists
become: "{{ ext_become }}"
ansible.builtin.file:
state: directory
path: "{{ terraform.path }}"
mode: '0755'
- name: Extract terraform archive
become: "{{ ext_become }}"
ansible.builtin.unarchive:
dest: "{{ terraform.path }}"
src: "{{ d_tempdir.path }}/{{ terraform.archive }}"
remote_src: true
- name: Link terraform executable
become: "{{ ext_become }}"
ansible.builtin.file:
state: link
src: "{{ terraform.path }}/terraform"
path: "{{ terraform.bin }}"

View File

@@ -1,38 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Check if vault is already installed
register: r_vault_inst
ansible.builtin.stat:
path: "{{ vault.bin }}"
- name: Download and install vault
when:
- not r_vault_inst.stat.exists
block:
- name: Download vault archive
ansible.builtin.get_url:
dest: "{{ d_tempdir.path }}/{{ vault.archive }}"
url: "{{ vault.url }}/{{ vault.archive }}"
mode: '0644'
decompress: false
- name: Ensure vault archive dir exists
become: "{{ ext_become }}"
ansible.builtin.file:
state: directory
path: "{{ vault.path }}"
mode: '0755'
- name: Extract vault archive
become: "{{ ext_become }}"
ansible.builtin.unarchive:
dest: "{{ vault.path }}"
src: "{{ d_tempdir.path }}/{{ vault.archive }}"
remote_src: true
- name: Link vault executable
become: "{{ ext_become }}"
ansible.builtin.file:
state: link
src: "{{ vault.path }}/vault"
path: "{{ vault.bin }}"

View File

@@ -1,38 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Check if zig exists
ansible.builtin.stat:
path: "{{ path.archive }}/zig/{{ zig.path }}/zig"
register: r_zig_stat
- name: Update/install zig
when:
- not r_zig_stat.stat.exists
block:
- name: Download zig archive
ansible.builtin.get_url:
dest: "{{ d_tempdir.path }}/{{ zig.pkg }}"
url: "{{ zig.base_url }}/{{ zig.vers }}/{{ zig.pkg }}"
decompress: false
mode: '0644'
- name: Create zig archive dir
become: "{{ ext_become }}"
ansible.builtin.file:
state: directory
mode: '0755'
path: "{{ path.archive }}/zig"
- name: Extract zig package
become: "{{ ext_become }}"
ansible.builtin.unarchive:
dest: "{{ path.archive }}/zig"
src: "{{ d_tempdir.path }}/{{ zig.pkg }}"
remote_src: true
- name: Link zig binary
become: "{{ ext_become }}"
ansible.builtin.file:
state: link
src: "{{ path.archive }}/zig/{{ zig.path }}/zig"
path: "{{ path.bin }}/zig"

View File

@@ -1,37 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Check if zls exists
ansible.builtin.stat:
path: "{{ path.archive }}/zls/{{ zls.path }}/zls"
register: r_zls_stat
- name: Update/install zls
block:
- name: Download zls archive
register: get_url_zls
ansible.builtin.get_url:
dest: "{{ d_tempdir.path }}/{{ zls.pkg }}"
url: "{{ zls.base_url }}/{{ zls.pkg }}"
decompress: false
mode: '0644'
- name: Create zls archive dir
become: "{{ ext_become }}"
ansible.builtin.file:
state: directory
mode: '0755'
path: "{{ path.archive }}/zls/{{ zls.path }}"
- name: Extract zls package
become: "{{ ext_become }}"
ansible.builtin.unarchive:
dest: "{{ path.archive }}/zls/{{ zls.path }}"
src: "{{ d_tempdir.path }}/{{ zls.pkg }}"
remote_src: true
- name: Link zls binary
become: "{{ ext_become }}"
ansible.builtin.file:
state: link
src: "{{ path.archive }}/zls/{{ zls.path }}/zls"
path: "{{ path.bin }}/zls"

View File

@@ -1,4 +1,4 @@
# vim: set filetype=yaml.ansible
# vim: set filetype=yaml.ansible :
#
## Helper: cargo.yml
## Description: Install packages using the cargo command
@@ -7,10 +7,6 @@
## version: cargo version, omitted if empty
## locked: _bool_, optional. Default false
---
- name: Dump install vars
ansible.builtin.debug:
var: pkg
- name: Install with cargo {{ pkg.name }}
become: "{{ install_become }}"
become_user: "{{ install_become_user }}"

View File

@@ -1,5 +1,10 @@
# vim: set filetype=yaml.ansible :
---
- name: Clean existing go package {{ pkg.bin }}
vars:
files: "{{ pkg.files | default([]) }}"
ansible.builtin.include_tasks: helpers/clean_install.yml
- name: Install go package "{{ pkg.url }}"
become: "{{ install_become }}"
become_user: "{{ install_become_user }}"

View File

@@ -6,7 +6,7 @@
ansible.builtin.set_fact:
__font_config:
extract_to: "{{ path_archive }}/nerdfonts/{{ nf }}"
url: "{{ nerdfonts_base_url }}/{{ __nerdfonts[nf]['archive'] | default(nf) }}.tar.xz"
url: "{{ nerdfonts.base_url }}/{{ __nerdfonts[nf]['archive'] | default(nf) }}.tar.xz"
name: "{{ __nerdfonts[nf]['archive'] | default(nf) }}.tar.xz"
links:
- from: "{{ path_archive }}/nerdfonts/{{ nf }}"

View File

@@ -1,7 +1,7 @@
# vim: set filetype=yaml.ansible :
#
## Package: choose
## Description:
## Description: a human-friendly and fast alternative to cut and (sometimes) awk
## Version: latest
## Methods: source
## Helpers: cargo

View File

@@ -1,13 +1,49 @@
# vim: set filetype=yaml.ansible :
#
## Package: gopls
## Description: go language server
## Version: latest
## Methods: source
## Helpers: go_install
---
- name: Add gopls
- name: Set gopls default facts # {{{
ansible.builtin.set_fact:
gopls:
methods:
- source
install_files:
- to: bin/gopls
version: "{{ gopls_version | default('latest') }}"
install_url: golang.org/x/tools/gopls
pkg_deps:
- go
# }}}
- name: Start gopls configuration
when:
- gopls_configured is undefined
- "'gopls' not in __configured"
block:
- name: Append gopls to pkg_go
- name: Set gopls install method
when:
- gopls_imethod is undefined
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['golang.org/x/tools/gopls@latest'] }}"
gopls_imethod: "{{ imethod if imethod in gopls.methods else gopls.methods[0] }}"
- name: Set gopls_configured
- name: Set gopls source install facts
when:
- gopls_imethod == 'source'
block:
- name: Configure gopls source install
ansible.builtin.set_fact:
gopls_go_pkg:
url: "{{ gopls.install_url }}@ {{ gopls.version }}"
bin: "{{ path_bind }}/gopls"
files: "{{ gopls.install_files }}"
- name: Queue gopls for go_install
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + [gopls_go_pkg] }}"
gopls_install: "{{ gopls_imethod }}={{ gopls_go_pkg }}"
- name: Finalise gopls configuration
ansible.builtin.set_fact:
gopls_configured: true
__configured: "{{ __configured | combine( { 'gopls': gopls_install } ) }}"

View File

@@ -1,19 +1,55 @@
# vim: set filetype=yaml.ansible :
#
## Package: gping
## Description: TUI ping tools with style
## Version: latest
## Methods: [system, source]
## Helpers: cargo
---
- name: Add gping
- name: Set gping default facts # {{{
ansible.builtin.set_fact:
gping:
methods:
- system
- source
version: "{{ gping_version | default('latest') }}"
pkgname: gping
# }}}
- name: Configure gping
when:
- "'gping' not in __configured"
block:
- name: Append gping to pkg_sys
- name: Set gping install method
when:
- ansible_system == 'Darwin'
- gping_imethod is undefined
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['gping'] }}"
gping_imethod: "{{ imethod if imethod in gping.methods else gping.methods[0] }}"
- name: Append gping to pkg_cargo
- name: Configure gping system install
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['gping'] }}"
- gping_imethod == 'system'
block:
- name: Append gping to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + [gping.pkgname] }}"
gping_install: "{{ gping_imethod }}={{ gping.pkgname }}"
- name: Set gping_configured
- name: Configure gping source install
when:
- gping_imethod == 'source'
block:
- name: Set gping cargo install
ansible.builtin.set_fact:
gping_cargo_install:
name: "{{ gping.pkgname }}"
version: "{{ gping.version }}"
locked: true
- name: Queue gping cargo install
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_carg + [gping_cargo_install] }}"
gping_install: "{{ gping_imethod }}={{ gping_cargo_install }}"
- name: Finalise gping configuration
ansible.builtin.set_fact:
gping_configured: true
__configured: "{{ __configured | combine( { 'gping': gping_install } ) }}"

View File

@@ -1,13 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add htmx_lsp
when:
- htmx_lsp_configured is undefined
block:
- name: Append htmx-lsp 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,25 +0,0 @@
# 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 httpie to pkg_flatpak
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [httpie.pkg] }}"
- name: Append httpie 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 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Append hugo to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['hugo'] }}"

View File

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

View File

@@ -1,13 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add jinja_lsp
when:
- jinja_lsp_configured is undefined
block:
- name: Append jinja-lsp to pkg_cargo
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 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Append jq to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['jq'] }}"

View File

@@ -1,9 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Load kitty config
ansible.builtin.include_tasks:
file: config/kitty.yml
- name: Append kitty to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + kitty.pkgs }}"

View File

@@ -1,13 +1,49 @@
# vim: set filetype=yaml.ansible :
#
## Package: lazygit
## Description: great looking and functional tui git manager
## Version: latest
## Methods: source
## Helpers: go_install
---
- name: Add lazygit
- name: Set lazygit default facts # {{{
ansible.builtin.set_fact:
lazygit:
url: github.com/jesseduffield/lazygit
version: "{{ lazygit_version | default('latest') }}"
pkg_deps:
- go
# }}}
- name: Configure lazygit
when:
- lazygit_configured is undefined
- "'lazygit' not in __configured"
block:
- name: Append lazygit to pkg_go
- name: Set lazygit install method
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/jesseduffield/lazygit@latest'] }}"
lazygit_imethod: "{{ imethod if imethod in lazygit.methods else lazygit.methods[0] }}"
- name: Set lazygit_configured
- name: Configure lazygit source install
when:
- lazygit_imethod == 'source'
block:
- name: Set lazygit go install
ansible.builtin.set_fact:
lazygit_go_install:
lazygit_go_pkg:
url: "{{ lazygit.url }}@{{ lazygit.version }}"
bin: "{{ path_bin }}/lazygit"
- name: Queue lazygit go install
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + [lazygit_go_pkg] }}"
lazygit_install: "{{ lazygit_imethod }}={{ lazygit_go_install }}"
- name: Append pkg_deps to install list
loop: "{{ lazygit.pkg_deps }}"
loop_control:
loop_var: dep
ansible.builtin.include_tasks: "pkgs/{{ dep }}.yml"
- name: Finalise lazygit configuration
ansible.builtin.set_fact:
lazygit_configured: true
__configured: "{{ __configured | combine( { 'lazygit': lazygit_install } ) }}"

View File

@@ -1,17 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Load luals config
ansible.builtin.include_tasks:
file: config/luals.yml
- name: Append luals to pkg_archive
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['luals'] }}"
- name: Append lua-language-server to pkg_sys
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['lua-language-server'] }}"

View File

@@ -1,13 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add markdownlint_cli
when:
- markdownlint_cli_configured is undefined
block:
- name: Append markdownlint-cli to pkg_npm
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,19 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add mcfly
block:
- name: Append mcfly to pkg_sys
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['mcfly'] }}"
- name: Append mcfly to pkg_cargo
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['mcfly'] }}"
- name: Set mcfly_configured
ansible.builtin.set_fact:
mcfly_configured: true

View File

@@ -1,5 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Append mc to pkg_go
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/minio/mc@latest'] }}"

View File

@@ -1,8 +1,23 @@
# vim: set filetype=yaml.ansible :
#
## Package: nerdfonts
## Description: Monospace fonts that are attractive for developers
## Version: latest
## Methods: archive
## Helpers: nerdfont_config, archive
---
- name: Set default nerdfonts facts # {{{
ansible.builtin.set_fact:
__nerdfonts:
nerdfonts:
methods:
Linux:
- archive
Darwin:
- system
install_path: share/fonts
base_url: https://github.com/ryanoasis/nerd-fonts/releases/latest/download
install_list: "{{ nerdfonts_install_list | default(['JetBrainsMono', 'FiraCode', 'Symbols']) }}"
__nerdfonts: # {{{
0xProto:
brew: font-0xproto-nerd-font
"3270":
@@ -165,40 +180,56 @@
brew: font-victor-mono-nerd-font
ZedMono:
brew: font-zed-mono-nerd-font
# }}}
base_url: https://github.com/ryanoasis/nerd-fonts/releases/latest/download
# }}}
- name: Configure nerdfonts
when:
- "'nerdfonts' not in __configured"
block:
- name: Create nerdfonts directories
become: "{{ install_become }}"
become_user: "{{ install_become_user }}"
ansible.builtin.file:
state: directory
mode: '0755'
path: "{{ install_prefix }}/{{ nerdfonts_install_path }}"
owner: "{{ install_prefix_owner }}"
group: "{{ install_prefix_group }}"
- name: Set nerdfonts install method
when:
- nerdfonts_imethod is undefined
ansible.builtin.set_fact:
nerdfonts_imethod: "{{ imethod if imethod in nerdfonts.methods[system] else nerdfonts.methods[system][0] }}"
- name: Configure nerdfonts archive install
when:
- nerdfonts_install_list|length > 0
- ansible_facts["system"] != 'Darwin'
loop: "{{ nerdfonts_install_list }}"
loop_control:
loop_var: nf
ansible.builtin.include_tasks: helpers/nerdfont_config.yml
- nerdfonts_imethod == 'archive'
block:
- name: Create nerdfonts directories
become: "{{ install_become }}"
become_user: "{{ install_become_user }}"
ansible.builtin.file:
state: directory
mode: '0755'
path: "{{ install_prefix }}/{{ nerdfonts.install_path }}"
owner: "{{ install_prefix_owner }}"
group: "{{ install_prefix_group }}"
- name: Append nerdfonts to pkg_cask
- name: Configure nerdfonts archive install
when:
- nerdfonts_install_list|length > 0
loop: "{{ nerdfonts.install_list }}"
loop_control:
loop_var: nf
ansible.builtin.include_tasks: helpers/nerdfont_config.yml
- name: Configure nerdfonts system install
when:
- ansible_facts["system"] == 'Darwin'
loop: "{{ nerdfonts_install_list }}"
loop_control:
loop_var: nf
- nerdfonts_imethod == 'system'
block:
- name: Append nerdfonts to pkg_cask
loop: "{{ nerdfonts.install_list }}"
loop_control:
loop_var: nf
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + [__nerdfonts[nf].brew] }}"
- name: Finalise nerdfonts archive install
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + [__nerdfonts[nf].brew] }}"
nerdfonts_install: "{{ nerdfonts_imethod }}={{ nerdfont.install_list }}"
- name: Set nerdfonts_configured
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'nerdfonts': true } ) }}"
__configured: "{{ __configured | combine( { 'nerdfonts': nerdfonts_install } ) }}"

View File

@@ -1,5 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Append nfs_server to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + nfs_client.pkgs }}"

View File

@@ -1,5 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Append nfs_server to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + nfs_server.pkgs }}"

View File

@@ -1,13 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add nginxls
when:
- nginxls_configured is undefined
block:
- name: Append nginx-language-server to pkg_pipx
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,29 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add nomad
block:
- name: Load nomad config
ansible.builtin.include_tasks:
file: config/nomad.yml
- name: Append nomad to pkg_tap
when:
- ansible_distribution == 'MacOSX'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + nomad.pkgs }}"
- name: Append nomad 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,26 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Load packer config
ansible.builtin.include_tasks:
file: config/packer.yml
- name: Append packer to pkg_tap
when:
- packer.method == 'tap'
ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + packer.pkgs }}"
- name: Append packer to pkg_sys
when:
- packer.method == 'sys'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + packer.pkgs }}"
- name: Append packer to pkg_archive
when:
- packer.method == 'archive'
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['packer'] }}"

View File

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

View File

@@ -1,25 +0,0 @@
# 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 pgadmin to pkg_flatpak
when:
- pgadmin.method == 'flatpak'
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [pgadmin.flatpak] }}"
- name: Append pgadmin 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,33 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Set pipx default facts
ansible.builtin.set_fact:
pipx:
methods:
- system
- name: Configure pipx
when:
- "'pipx' not in __configured"
block:
- name: Set pipx install method
when:
- pipx_imethod is undefined
ansible.builtin.set_fact:
pipx_imethod: "{{ imethod if imethod in pipx.methods else pipx.methods[0] }}"
- name: Configure pipx system install
when:
- pipx_imethod == 'system'
block:
- name: Queue pipx system install
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['pipx'] }}"
- name: Finalise pipx system install
ansible.builtin.set_fact:
pipx_install: "{{ pipx_imethod }}=pipx"
- name: Finalise pipx configuration
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'pipx': pipx_install } ) }}"

View File

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

View File

@@ -1,15 +0,0 @@
# vim: set filetype=yaml.ansible:
---
- name: Add postgresql_server
when:
- postgresql_server_configured is undefined
block:
- name: Load postgresql_server config
ansible.builtin.include_tasks:
file: config/postgresql_server.yml
- name: Append postgresql server to pkg_sys
when:
- postgresql_server.method == 'sys'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + postgresql_server.pkgs }}"

View File

@@ -1,17 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Load pulumi config
ansible.builtin.include_tasks:
file: config/pulumi.yml
- name: Append pulumi to pkg_archive
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['pulumi'] }}"
- name: Append to pulumi to pkg_sys
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['pulumi'] }}"

View File

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

View File

@@ -1,9 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Load python3 config
ansible.builtin.include_tasks:
file: config/python3.yml
- name: Append python3 to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + python3.pkgs }}"

View File

@@ -1,13 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add quobix_vacuum
when:
- quobix_vacuum_configured is undefined
block:
- name: Append quobix/vacuum to pkg_npm
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,5 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Append restic to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['restic'] }}"

View File

@@ -1,13 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add revive
when:
- revive_configured is undefined
block:
- name: Append revive to pkg_go
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 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Append ripgrep to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['ripgrep'] }}"

View File

@@ -1,5 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Append samba_client to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + samba_client.pkgs }}"

View File

@@ -1,5 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Append samba_server to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + samba_server.pkgs }}"

View File

@@ -1,19 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add sd
block:
- name: Append sd to pkg_sys
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['sd'] }}"
- name: Append sd to pkg_cargo
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['sd'] }}"
- name: Set sd_configured
ansible.builtin.set_fact:
sd_configured: true

View File

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

View File

@@ -1,13 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add sqlls
when:
- sqlls_configured is undefined
block:
- name: Append sql-language-server to pkg_npm
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,9 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Append stow 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,69 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Load tailscale config
ansible.builtin.include_tasks:
file: config/tailscale.yml
- name: Append tailscale for linux
when:
- ansible_system == 'Linux'
block:
- name: Append tailscale for RedHat distros
when:
- ansible_os_family == 'RedHat'
block:
- name: Add tailscale repo for Fedora >=41
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:
- ansible_distribution == 'Fedora'
- ansible_distribution_major_version|int >= 41
- name: Add tailscale repo for 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: Add tailscale for 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: Append tailscale 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 tailscale to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['tailscale'] }}"
- name: Append tailscale to pkg_cask
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['tailscale'] }}"

View File

@@ -1,13 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add tailwindcss_languageserver
when:
- tailwindcss_languageserver_configured is undefined
block:
- name: Add tailwindcss/language-server to pkg_npm
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,13 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Append tailwindcss to pkg_npm
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['tailwindcss' '@tailwindcss/cli'] }}"
- name: Append tailwindcss to pkg_sys
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['tailwindcss'] }}"

View File

@@ -1,13 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add templ
when:
- templ_configured is undefined
block:
- name: Append templ to pkg_go
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,33 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Load terraform config
ansible.builtin.include_tasks:
file: config/terraform.yml
- name: Append terraform
when:
- terraform.method == 'sys'
block:
- name: Append terraform to pkg_tap
when:
- ansible_distribution == 'MacOSX'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + terraform.pkgs }}"
- name: Append terraform to pkg_sys
when:
- ansible_system == 'Linux'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + terraform.pkgs }}"
- name: Append terraform to pkg_archive
when:
- terraform.method == 'archive'
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['terraform'] }}"

View File

@@ -1,37 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Load terraformls config
ansible.builtin.include_tasks:
file: config/terraformls.yml
- name: Append terraformls
when:
- terraformls.method == 'sys'
block:
- name: Append terraformls to pkg_tap
when:
- ansible_system == 'Darwin'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + terraformls.pkgs }}"
- name: Append terraformls to pkg_sys
when:
- ansible_system == 'Linux'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + terraformls.pkgs }}"
- name: Append terraformls to pkg_go
when:
- terraformls.method == 'gosrc'
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + [terraformls.gopkg] }}"
- name: Set terraformls_configured
ansible.builtin.set_fact:
terraformls_configured: true

View File

@@ -1,15 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add tidy
block:
- name: Load tidy config
ansible.builtin.include_tasks:
file: config/tidy.yml
- name: Append tidy to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + tidy.pkgs }}"
- name: Set tidy_configured
ansible.builtin.set_fact:
tidy_configured: true

View File

@@ -1,19 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add tldr
block:
- name: Append tldr to pkg_sys
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['tlrc'] }}"
- name: Append tldr to pkg_cargo
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['tlrc'] }}"
- name: Set tldr_configured
ansible.builtin.set_fact:
tldr_configured: true

View File

@@ -1,11 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add tmux
block:
- name: Append tmux to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['tmux'] }}"
- name: Set tmux_configured
ansible.builtin.set_fact:
tmux_configured: true

View File

@@ -1,22 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add uwsm
when:
- ansible_os_family != 'Alpine'
- ansible_os_family != 'Darwin'
block:
- name: Load uwsm config
ansible.builtin.include_tasks:
file: config/uwsm.yml
- name: Append uwsm build_deps to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + uwsm.build_deps + uwsm.deps }}"
- name: Append uwsm to pkg_src
ansible.builtin.set_fact:
pkg_src: "{{ pkg_src + ['uwsm'] }}"
- name: Set uwsm_configured
ansible.builtin.set_fact:
uwsm_configured: true

View File

@@ -1,93 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add vault
block:
- name: Load vault config
ansible.builtin.include_tasks:
file: config/vault.yml
- name: Append vault
when:
- vault.method == 'sys'
block:
- name: Append vault to pkg_tap
when:
- ansible_system == 'Darwin'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + vault.pkgs }}"
- name: Append vault to pkg_sys
when:
- ansible_system == 'Linux'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + vault.pkgs }}"
- name: Append vault to pkg_archive
when:
- vault.method == 'archive'
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['vault'] }}"
- name: Create group for vault
become: true
when:
- ansible_os_family == 'Alpine'
ansible.builtin.group:
name: vault
system: true
state: present
- name: Create user for vault
become: true
when:
- ansible_os_family == 'Alpine'
ansible.builtin.user:
comment: hashicorp vault user
generate_ssh_key: true
home: /var/lib/vault
name: vault
group: vault
ssh_key_file: .ssh/id_ed25519
ssh_key_type: ed25519
state: present
system: true
- name: Install vault openrc script
become: true
when:
- ansible_os_family == 'Alpine'
ansible.builtin.copy:
backup: false
dest: /etc/init.d/vault
owner: root
group: root
mode: '0755'
src: vault/Alpine/openrc
- name: Ensure /etc/vault exists
become: true
ansible.builtin.file:
state: directory
path: /etc/vault
owner: root
group: root
mode: '0755'
- name: Install vault basic config.hcl
become: true
ansible.builtin.template:
src: vault/config.hcl.j2
dest: /etc/vault/config.hcl
mode: '0644'
owner: root
group: root
- name: Set vault_configured
ansible.builtin.set_fact:
vault_configured: true

View File

@@ -1,5 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add wofi to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['wofi'] }}"

View File

@@ -1,23 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add xh
block:
- name: Load xh config
ansible.builtin.include_tasks:
file: config/xh.yml
- name: Append xh to pkg_sys
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['xh'] }}"
- name: Add xh to cargopkgs
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + [xh] }}"
- name: Set xh_configured
ansible.builtin.set_fact:
xh_configured: true

View File

@@ -1,13 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add yamlls
when:
- yamlls_configured is undefined
block:
- name: Append yaml-language-server to pkg_npm
ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['yaml-language-server'] }}"
- name: Set yamlls_configured
ansible.builtin.set_fact:
yamlls_configured: true

View File

@@ -1,13 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Install for Linux via flatpak
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + ['app.zen_browser.zen'] }}"
- name: Install for MacOSX using homebrew cask
when:
- ansible_system == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['zen-browser'] }}"

View File

@@ -1,28 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add zfs
block:
- name: Load zfs config
ansible.builtin.include_tasks:
file: config/zfs.yml
- name: Linux based installation
when:
- ansible_system == 'Linux'
block:
- name: Append zfs to pkg_sys
notify:
- Depend zfs repo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + zfs.deps + zfs.pkgs }}"
- name: Append openzfs to pkg_cask
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['openzfs'] }}"
- name: Set zfs_configured
ansible.builtin.set_fact:
zfs_configured: true

View File

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

View File

@@ -1,4 +1,10 @@
# vim: set filetype=yaml.ansible :
#
## Package: zoxide
## Description: cli path bookmark manager
## Version: latest
## Methods: [source, system]
## Helpers: cargo
---
- name: Set zoxide default facts # {{{
ansible.builtin.set_fact:
@@ -6,6 +12,7 @@
methods:
- source
- system
pkgname: zoxide
cargo:
name: zoxide
pkg_deps:
@@ -27,7 +34,8 @@
block:
- name: Append zoxide to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['zoxide'] }}"
pkg_sys: "{{ pkg_sys + [zoxide.pkgname] }}"
zoxide_install: "{{ zoxide_imethod }}={{ zoxide.pkgname }}"
- name: Configure zoxide cargo install
when:
@@ -35,8 +43,9 @@
block:
- name: Set zoxide cargo facts
ansible.builtin.set_fact:
zoxide_cargo_install: "{{ zoxide.cargo }}"
pkg_cargo: "{{ pkg_cargo + [zoxide.cargo] }}"
zoxide_install: "{{ zoxide.imethod }}={{ zoxide.cargo }}"
- name: Set zoxide_configured
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'zoxide': zoxide_imethod } ) }}"
__configured: "{{ __configured | combine( { 'zoxide': zoxide_install } ) }}"

View File

@@ -1,4 +1,10 @@
# vim: set filetype=yaml.ansible :
#
## Package: zsh
## Description: an sh compatible shell with a great completion engine
## Version: system
## Methods: system
## Helpers: -
---
- name: Set zsh default facts # {{{
ansible.builtin.set_fact:

View File

@@ -1,49 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Load hashicorp repo config
ansible.builtin.include_tasks:
file: config/hashicorp.yml
- name: RedHat repository
when:
- ansible_os_family == 'RedHat'
block:
- name: Enable hashicorp repo
become: true
ansible.builtin.get_url:
url: "{{ hashicorp.repo }}"
dest: /etc/yum.repos.d/hashicorp.repo
mode: '0644'
- name: Debian based repository
when:
- ansible_os_family == 'Debian'
block:
- name: Get hashicorp archive gpg key
ansible.builtin.get_url:
dest: "{{ d_tempdir.path }}/hashicorp_gpg"
url: https://apt.releases.hashicorp.com/gpg
mode: '0644'
- name: Install hashicorp archive gpg key
become: true
ansible.builtin.command:
creates: /usr/share/keyrings/hashicorp-archive-keyring.gpg
cmd:
- gpg
- --dearmor
- -o
- /usr/share/keyrings/hashicorp-archive-keyring.gpg
- "{{ d_tempdir.path }}/hashicorp_gpg"
- name: Enable hasicorp repo for debian
ansible.builtin.apt_repository:
repo: "{{ pkgconfig.hashicorp.Linux.Debian.repo }}"
state: present
update_cache: false
- name: MacOS specific configuration
when:
- ansible_distribution == 'MacOSX'
ansible.builtin.set_fact:
brewtap: "{{ brewtap + ['hashicorp/tap'] }}"

View File

@@ -1,25 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Enable terra repo for fedora
when:
- ansible_distribution == 'Fedora'
block:
- name: Enable terra repo for fedora >=41
become: true
when: ansible_distribution_major_version|int >= 41
ansible.builtin.command:
creates: /etc/yum.repos.d/terra.repo
cmd: "dnf config-manager addrepo --from-repofile={{ pkgconfig.terrarepo.repo }}"
- name: Enable terra repo for fedora < 41
become: true
when: ansible_distribution_major_version|int < 41
ansible.builtin.command:
creates: /etc/yum.repos.d/terra.repo
cmd: "dnf config-manager --add-repo {{ pkgconfig.terrarepo.repo }}"
- name: Install terra release package
become: true
ansible.builtin.dnf:
name: terra-release
state: present

View File

@@ -1,44 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: RedHat based configuration
when:
- ansible_os_family == 'RedHat'
block:
- name: Add openzfs gpg_key
become: "{{ sys_pkg_become }}"
ansible.builtin.rpm_key:
key: "{{ zfs.gpg_key }}"
fingerprint: "{{ zfs.gpg_fp }}"
state: present
- name: Enable openzfs repository
become: "{{ sys_pkg_become }}"
ansible.builtin.dnf:
name: "{{ zfs.repo_pkg }}"
disable_gpg_check: "{{ zfs.skip_gpg_check }}"
state: present
- name: Debian configuration
when:
- ansible_os_family == 'Debian'
block:
- name: Enable openzfs repository
become: "{{ sys_pkg_become }}"
ansible.builtin.apt_repository:
repo: |
deb http://deb.debian.org/debian {{ zfs.release }}-backports main contrib
deb-src http://deb.debian.org/debian {{ zfs.release }}-backports main contrib
filename: "{{ zfs.release }}-backports"
state: present
update_cache: false
- name: Pin zfs package to backports
become: "{{ sys_pkg_become }}"
ansible.builtin.copy:
dest: /etc/apt/preferences.d/90_zfs
state: file
mode: '0644'
content: |
Package: src:zfs-linux
Pin: release n={{ zfs.release }}-backports
Pin-Priority: 990

View File

@@ -1,37 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Clean existing install
when:
- ghostty.clean
become: "{{ ext_become }}"
loop: "{{ ghostty.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
- name: Check if ghostty is installed
register: stat_ghostty_inst
ansible.builtin.stat:
path: "{{ path.prefix }}/bin/ghostty"
- name: Install and build source for {{ pkg }}
when:
- not stat_ghostty_inst.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
depth: 1
force: true
dest: "{{ d_tempdir.path }}/ghostty"
repo: "{{ ghostty.repo }}"
version: "{{ ghostty.vers }}"
- name: Build {{ pkg }}
become: "{{ ext_become }}"
register: c_ghostty_build
ansible.builtin.command:
chdir: "{{ d_tempdir.path }}/ghostty"
creates: "{{ path.prefix }}/bin/ghostty"
cmd: "zig build -p {{ path.prefix }} -Doptimize={{ ghostty.optimize }}"

View File

@@ -1,20 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add GOROOT/bin to PATH and define GOROOT
become: true
ansible.builtin.copy:
dest: /etc/profile.d/go.sh
owner: root
group: root
mode: '0644'
content: |
# enable go
GOROOT=/usr/local/go
pathmunge ${GOROOT}/bin
if [ "$EUID" = "0" ]; then
GOBIN=/usr/local/bin
else
GOBIN=${HOME}/go/bin
pathmunge ${HOME}/go/bin
fi
export GOROOT GOBIN

View File

@@ -1,39 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install of {{ pkg }}
when:
- hyprcursor.clean
vars:
file_list: "{{ srcconfig.hyprcursor.build_installed_files }}"
ansible.builtin.include_tasks:
file: helpers/clean_install.yml
- name: Check for installed {{ pkg }}
register: stat_hyprcursor_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/bin/hyprcursor-util"
- name: Build and install {{ pkg }}
when:
- not stat_hyprcursor_inst.stat.exists
block:
- name: Do repo clone {{ pkg }}
vars:
src_pkg: hyprcursor
src_path: "{{ srcconfig.hyprcursor.src_path }}"
src_gitrepo: "{{ srcconfig.hyprcursor.gitrepo }}"
src_version: "{{ hyprcursor.vers }}"
ansible.builtin.include_tasks:
file: helpers/git.yml
- name: CMake build and install {{ pkg }}
vars:
do_become: true
src_path: "{{ srcconfig.hyprcursor.src_path }}"
configure: "{{ srcconfig.hyprcursor.configure }}"
build_creates: "{{ srcconfig.hyprcursor.build_creates }}"
build: "{{ srcconfig.hyprcursor.build }}"
install_creates: "{{ srcconfig.hyprcursor.install_creates }}"
install: "{{ srcconfig.hyprcursor.install }}"
ansible.builtin.include_tasks:
file: helpers/cmake_build.yml

View File

@@ -1,39 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install of {{ pkg }}
when:
- hyprgraphics.clean
vars:
file_list: "{{ srcconfig.hyprcursor.build_installed_files }}"
ansible.builtin.include_tasks:
file: helpers/clean_install.yml
- name: Check for existing install {{ pkg }}
register: stat_hyprgraphics_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/{{ lib_path }}/libhyprgraphics.so"
- name: Build and install {{ pkg }}
when:
- not stat_hyprgraphics_inst.stat.exists
block:
- name: Do repo clone {{ pkg }}
vars:
src_pkg: hyprgraphics
src_path: "{{ srcconfig.hyprgraphics.src_path }}"
src_gitrepo: "{{ srcconfig.hyprgraphics.gitrepo }}"
src_version: "{{ hyprgraphics.vers }}"
ansible.builtin.include_tasks:
file: helpers/git.yml
- name: CMake build and install {{ pkg }}
vars:
do_become: true
src_path: "{{ srcconfig.hyprgraphics.src_path }}"
configure: "{{ srcconfig.hyprgraphics.configure }}"
build_creates: "{{ srcconfig.hyprgraphics.build_creates }}"
build: "{{ srcconfig.hyprgraphics.build }}"
install_creates: "{{ srcconfig.hyprgraphics.install_creates }}"
install: "{{ srcconfig.hyprcursor.install }}"
ansible.builtin.include_tasks:
file: helpers/cmake_build.yml

View File

@@ -1,76 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install of {{ pkg }}
when:
- hypridle.clean
become: true
loop: "{{ hypridle.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check for existing install of {{ pkg }}
register: stat_hypridle_bin
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/bin/hypridle"
- name: Build and install {{ pkg }}
when:
- not stat_hypridle_bin.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
force: true
depth: 1
dest: "{{ hypridle.git_path }}"
recursive: true
repo: "{{ hypridle.repo }}"
version: "{{ hypridle.vers }}"
- name: Apply cmakelists patch {{ pkg }}
ansible.posix.patch:
basedir: "{{ hypridle.git_path }}"
src: hypridle/cmakelists.patch
state: present
strip: 1
- name: Configure {{ pkg }}
ansible.builtin.command:
creates: "{{ hypridle.git_path }}/build"
chdir: "{{ hypridle.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- -DCMAKE_BUILD_TYPE:STRING=Release
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
- -S
- .
- -B
- ./build
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ hypridle.git_path }}/build/hypridle"
chdir: "{{ hypridle.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc | int }}"
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/hypridle"
chdir: "{{ hypridle.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -1,69 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install of {{ pkg }}
when:
- hyprland.clean
become: true
loop: "{{ hyprland.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check for existing install of {{ pkg }}
register: stat_hyprland_bin
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/bin/Hyprland"
- name: Build and install {{ pkg }}
when:
- not stat_hyprland_bin.stat.exists
block:
- name: Clone git repository
ansible.builtin.git:
force: true
depth: 1
dest: "{{ hyprland.git_path }}"
recursive: true
repo: "{{ hyprland.repo }}"
version: "{{ hyprland.vers }}"
- name: Configure {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprland.git_path }}/build"
chdir: "{{ hyprland.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- -DCMAKE_BUILD_TYPE:STRING=Release
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
- -S
- .
- -B
- ./build
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprland.git_path }}/build/Hyprland"
chdir: "{{ hyprland.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc | int }}"
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/hyprland"
chdir: "{{ hyprland.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -1,51 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install of {{ pkg }}
when:
- hyprland_protocols.clean
become: true
loop: "{{ hyprland_protocols.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check for existing install of {{ pkg }}
register: stat_hyprland_protocols_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/share/hyprland-protocols/protocols/hyprland-ctm-control-v1.xml"
- name: Build and install hyprland-protocols
when:
- not stat_hyprland_protocols_inst.stat.exists
block:
- name: Clone git repository
ansible.builtin.git:
force: true
depth: 1
recursive: true
dest: "{{ hyprland_protocols.git_path }}"
repo: "{{ hyprland_protocols.repo }}"
version: "{{ hyprland_protocols.vers }}"
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprland_protocols.git_path }}/build/build.ninja"
chdir: "{{ hyprland_protocols.git_path }}"
argv:
- meson
- setup
- --prefix={{ hyprland.prefix }}
- build
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ hyprland.prefix }}/share/hyprland-protocols/protocols/hyprland-ctm-control-v1.xml"
chdir: "{{ hyprland_protocols.git_path }}"
argv:
- meson
- install
- -C
- build

View File

@@ -1,70 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install of {{ pkg }}
when:
- hyprland_qt_support.clean
become: true
loop: "{{ hyprland_qt_support.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_hyprland_qt_support_bin
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/bin/hyprland_qt_support"
- name: Build and install {{ pkg }}
when:
- not stat_hyprland_qt_support_bin.stat.exists
block:
- name: Clone git repository
ansible.builtin.git:
force: true
depth: 1
dest: "{{ hyprland_qt_support.git_path }}"
recursive: true
repo: "{{ hyprland_qt_support.repo }}"
version: "{{ hyprland_qt_support.vers }}"
- name: Configure {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprland_qt_support.git_path }}/build"
chdir: "{{ hyprland_qt_support.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- -DCMAKE_BUILD_TYPE:STRING=Release
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
- -DINSTALL_QML_PREFIX=/lib/qt6/qml
- -S
- .
- -B
- ./build
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprland_qt_support.git_path }}/build/hyprland_qt_support"
chdir: "{{ hyprland_qt_support.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc | int }}"
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/hyprland_qt_support"
chdir: "{{ hyprland_qt_support.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -1,69 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install of {{ pkg }}
when:
- hyprland_qtutils.clean
become: true
loop: "{{ hyprland_qtutils.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_hyprland_qtutils_bin
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/bin/hyprland_qtutils"
- name: Build and install {{ pkg }}
when:
- not stat_hyprland_qtutils_bin.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
force: true
depth: 1
dest: "{{ hyprland_qtutils.git_path }}"
recursive: true
repo: "{{ hyprland_qtutils.repo }}"
version: "{{ hyprland_qtutils.vers }}"
- name: Configure {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprland_qtutils.git_path }}/build"
chdir: "{{ hyprland_qtutils.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- -DCMAKE_BUILD_TYPE:STRING=Release
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
- -S
- .
- -B
- ./build
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprland_qtutils.git_path }}/build/hyprland_qtutils"
chdir: "{{ hyprland_qtutils.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc | int }}"
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/hyprland_qtutils"
chdir: "{{ hyprland_qtutils.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -1,68 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- hyprlang.clean
become: true
loop: "{{ hyprlang.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_hyprlang_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/{{ lib_path }}/libhyprlang.so"
- name: Build and install {{ pkg }}
when:
- not stat_hyprlang_inst.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
force: true
depth: 1
dest: "{{ hyprlang.git_path }}"
repo: "{{ hyprlang.repo }}"
version: "{{ hyprlang.vers }}"
- name: Configure {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprlang.git_path }}/build"
chdir: "{{ hyprlang.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
- -S
- .
- -B
- ./build
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprlang.git_path }}/build/hyprlang.so"
chdir: "{{ hyprlang.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc | int }}"
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/hyprlang"
chdir: "{{ hyprlang.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -1,76 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- hyprlock.clean
become: true
loop: "{{ hyprlock.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_hyprlock_bin
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/bin/hyprlock"
- name: Build and install {{ pkg }}
when:
- not stat_hyprlock_bin.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
force: true
depth: 1
dest: "{{ hyprlock.git_path }}"
recursive: true
repo: "{{ hyprlock.repo }}"
version: "{{ hyprlock.vers }}"
- name: Apply cmakelists patch {{ pkg }}
ansible.posix.patch:
basedir: "{{ hyprlock.git_path }}"
src: hyprlock/cmakelists.patch
state: present
strip: 1
- name: Configure {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprlock.git_path }}/build"
chdir: "{{ hyprlock.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- -DCMAKE_BUILD_TYPE:STRING=Release
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
- -S
- .
- -B
- ./build
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprlock.git_path }}/build/hyprlock"
chdir: "{{ hyprlock.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc | int }}"
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/hyprlock"
chdir: "{{ hyprlock.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -1,69 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- hyprpaper.clean
become: true
loop: "{{ hyprpaper.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_hyprpaper_bin
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/bin/hyprpaper"
- name: Build and install {{ pkg }}
when:
- not stat_hyprpaper_bin.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
force: true
depth: 1
dest: "{{ hyprpaper.git_path }}"
recursive: true
repo: "{{ hyprpaper.repo }}"
version: "{{ hyprpaper.vers }}"
- name: Configure {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprpaper.git_path }}/build"
chdir: "{{ hyprpaper.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- -DCMAKE_BUILD_TYPE:STRING=Release
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
- -S
- .
- -B
- ./build
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprpaper.git_path }}/build/hyprpaper"
chdir: "{{ hyprpaper.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc | int }}"
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/hyprpaper"
chdir: "{{ hyprpaper.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -1,69 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- hyprpicker.clean
become: true
loop: "{{ hyprpicker.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_hyprpicker_bin
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/bin/hyprpicker"
- name: Build and install {{ pkg }}
when:
- not stat_hyprpicker_bin.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
force: true
depth: 1
dest: "{{ hyprpicker.git_path }}"
recursive: true
repo: "{{ hyprpicker.repo }}"
version: "{{ hyprpicker.vers }}"
- name: Configure {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprpicker.git_path }}/build"
chdir: "{{ hyprpicker.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- -DCMAKE_BUILD_TYPE:STRING=Release
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
- -S
- .
- -B
- ./build
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprpicker.git_path }}/build/hyprpicker"
chdir: "{{ hyprpicker.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc | int }}"
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/hyprpicker"
chdir: "{{ hyprpicker.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -1,69 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- hyprpolkitagent.clean
become: true
loop: "{{ hyprpolkitagent.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_hyprpolkitagent_bin
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/bin/hyprpolkitagent"
- name: Build and install {{ pkg }}
when:
- not stat_hyprpolkitagent_bin.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
force: true
depth: 1
dest: "{{ hyprpolkitagent.git_path }}"
recursive: true
repo: "{{ hyprpolkitagent.repo }}"
version: "{{ hyprpolkitagent.vers }}"
- name: Configure {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprpolkitagent.git_path }}/build"
chdir: "{{ hyprpolkitagent.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- -DCMAKE_BUILD_TYPE:STRING=Release
- -DCMAKE_INSTALL_PREFIX:PATH={{ hyprland.prefix }}
- -S
- .
- -B
- ./build
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprpolkitagent.git_path }}/build/hyprpolkitagent"
chdir: "{{ hyprpolkitagent.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc | int }}"
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/hyprpolkitagent"
chdir: "{{ hyprpolkitagent.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -1,68 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- hyprutils.clean
become: true
loop: "{{ hyprutils.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_hyprutils_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/{{ lib_path }}/libhyprutils.so"
- name: Build and install {{ pkg }}
when:
- not stat_hyprutils_inst.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
force: true
depth: 1
dest: "{{ hyprutils.git_path }}"
repo: "{{ hyprutils.repo }}"
version: "{{ hyprutils.vers }}"
- name: Configure {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprutils.git_path }}/build"
chdir: "{{ hyprutils.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
- -S
- .
- -B
- ./build
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ hyprutils.git_path }}/build/hyprutils.so"
chdir: "{{ hyprutils.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc | int }}"
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/hyprutils"
chdir: "{{ hyprutils.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -1,60 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- hyprwayland_scanner.clean
become: true
loop: "{{ hyprwayland_scanner.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_hyprwayland_scanner_inst
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/bin/hyprwayland-scanner"
- name: Build and install {{ pkg }}
when:
- not stat_hyprwayland_scanner_inst.stat.exists
block:
- name: Clone git repository
ansible.builtin.git:
force: true
depth: 1
dest: "{{ d_tempdir.path }}/hyprwayland-scanner"
repo: "{{ hyprwayland_scanner.repo }}"
version: "{{ hyprwayland_scanner.vers }}"
- name: Configure {{ pkg }}
ansible.builtin.command:
creates: "{{ d_tempdir.path }}/hyprwayland-scanner/build"
chdir: "{{ d_tempdir.path }}/hyprwayland-scanner"
argv:
- cmake
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
- -B
- build
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ d_tempdir.path }}/hyprwayland-scanner/build/hyprwayland-scanner"
chdir: "{{ d_tempdir.path }}/hyprwayland-scanner"
argv:
- cmake
- --build
- build
- -j
- "{{ ansible_processor_nproc | int }}"
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/hyprwayland-scanner"
chdir: "{{ d_tempdir.path }}/hyprwayland-scanner"
argv:
- cmake
- --install
- build

View File

@@ -1,47 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- neovide.clean
become: "{{ ext_become }}"
loop: "{{ neovide.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_neovide_inst
ansible.builtin.stat:
path: "{{ path.bin }}/neovide"
- name: Build and install {{ pkg }}
when:
- not state_neovide_inst.stat.exists
block:
- name: Ensure directories exist
become: true
loop:
- share/icons
- share/applications
loop_control:
loop_var: _dir
ansible.builtin.file:
state: directory
path: "{{ path.prefix }}/{{ _dir }}"
mode: '0755'
- name: Copy neovide icon
become: true
ansible.builtin.copy:
src: neovide/icon.png
dest: "{{ path.prefix }}/share/icons/neovide.png"
mode: '0644'
- name: Copy neovide.desktop
become: true
ansible.builtin.template:
src: neovide/neovide.desktop
dest: "{{ path.prefix }}/share/applications/neovide.desktop"
mode: '0644'

View File

@@ -1,41 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Clean existing install
when:
- neovim.installed_files is defined
- neovim.clean
become: "{{ ext_become }}"
loop: "{{ neovim.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
path: "{{ path.prefix }}/{{ file }}"
state: absent
- name: Check if neovim is already installed in {{ path.prefix }}
register: stat_neovim_inst
ansible.builtin.stat:
path: "{{ path.prefix }}/bin/nvim"
- name: Build and install neovim {{ neovim.git_branch }}
when:
- not stat_neovim_inst.stat.exists
block:
- name: Clone neovim git repository
ansible.builtin.git:
force: true
depth: 1
dest: "{{ neovim.git_path }}"
repo: "{{ neovim.git_repo }}"
version: "{{ neovim.vers }}"
recursive: true
- name: Build and install neovim
become: "{{ ext_become }}"
community.general.make:
chdir: "{{ neovim.git_path }}"
params:
CMAKE_BUILD_TYPE: "{{ neovim.build_type }}"
CMAKE_EXTRA_FLAGS: "-DCMAKE_INSTALL_PREFIX={{ path.prefix }}"
target: install
jobs: "{{ ansible_processor_nproc | int | default(4) }}"

View File

@@ -1,47 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- nwg_hello.clean
become: true
loop: "{{ nwg_hello.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_nwg_hello_inst
ansible.builtin.stat:
path: /etc/nwg-hello
- name: Build and install {{ pkg }}
when:
- not stat_nwg_hello_inst.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
force: true
depth: 1
dest: "{{ nwg_hello.git_path }}"
repo: "{{ nwg_hello.git_repo }}"
version: "{{ nwg_hello.vers }}"
- name: Apply patch Alpine linux {{ pkg }}
when:
- ansible_os_family == 'Alpine'
ansible.posix.patch:
basedir: "{{ nwg_hello.git_path }}"
src: nwg-hello/Alpine.patch
state: present
strip: 1
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: /etc/nwg-hello
chdir: "{{ nwg_hello.git_path }}"
argv:
- sh
- install.sh

View File

@@ -1,69 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- sdbus_cpp_2.clean
become: true
loop: "{{ sdbus_cpp_2.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ sdbus_cpp_2.prefix }}/{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_sdbus_cpp_2_inst
ansible.builtin.stat:
path: "{{ sdbus_cpp_2.prefix }}/{{ lib_path }}/libsdbus-c++.so"
- name: Build and install {{ pkg }}
when:
- not stat_sdbus_cpp_2_inst.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
force: true
depth: 1
recursive: true
dest: "{{ sdbus_cpp_2.git_path }}"
repo: "{{ sdbus_cpp_2.repo }}"
version: "{{ sdbus_cpp_2.vers }}"
- name: Configure {{ pkg }}
ansible.builtin.command:
creates: "{{ sdbus_cpp_2.git_path }}/build"
chdir: "{{ sdbus_cpp_2.git_path }}"
argv:
- cmake
- --no-warn-unused-cli
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{ sdbus_cpp_2.prefix }}
- -S
- .
- -B
- ./build
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ sdbus_cpp_2.git_path }}/build/libsdbus-c++.so"
chdir: "{{ sdbus_cpp_2.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc | int }}"
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ sdbus_cpp_2.prefix }}/{{ lib_path }}/libsdbus-c++.so"
chdir: "{{ sdbus_cpp_2.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -1,12 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Add /usr/local/bin to PATH
become: true
ansible.builtin.copy:
dest: /etc/profile.d/usr-local-bin.sh
owner: root
group: root
mode: '0644'
content: |
# add /usr/local/bin to PATH
pathmunge /usr/local/bin

View File

@@ -1,53 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- uwsm.clean
become: true
loop: "{{ uwsm.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_uwsm_inst
ansible.builtin.stat:
path: "{{ uwsm.prefix }}/bin/uwsm"
- name: Build and install {{ uwsm }}
when:
- not stat_uwsm_inst.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
force: true
depth: 1
dest: "{{ d_tempdir.path }}/uwsm"
repo: "{{ uwsm.repo }}"
version: "v{{ uwsm.vers }}"
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ d_tempdir.path }}/uwsm/build"
chdir: "{{ d_tempdir.path }}/uwsm"
argv:
- meson
- setup
- --prefix={{ uwsm.prefix }}
- -Duuctl=enabled
- -Dfumon=enabled
- -Duwsm-app=enabled
- build
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ uwsm.prefix }}/bin/uwsm"
chdir: "{{ d_tempdir.path }}/uwsm"
argv:
- meson
- install
- -C
- build

View File

@@ -1,66 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- xdg_desktop_portal_hyprland.clean
become: true
loop: "{{ xdg_desktop_portal_hyprland.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ hyprland.prefix }}/{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_xdg_desktop_portal_hyprland_bin
ansible.builtin.stat:
path: "{{ hyprland.prefix }}/bin/hyprland-share-picker"
- name: Build and install {{ pkg }}
when:
- not stat_xdg_desktop_portal_hyprland_bin.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
force: true
depth: 1
dest: "{{ xdg_desktop_portal_hyprland.git_path }}"
recursive: true
repo: "{{ xdg_desktop_portal_hyprland.repo }}"
version: "{{ xdg_desktop_portal_hyprland.vers }}"
- name: Configure {{ pkg }}
ansible.builtin.command:
creates: "{{ xdg_desktop_portal_hyprland.git_path }}/build"
chdir: "{{ xdg_desktop_portal_hyprland.git_path }}"
argv:
- cmake
- -DCMAKE_INSTALL_LIBEXECDIR={{ hyprland.prefix }}/lib
- -DCMAKE_INSTALL_PREFIX={{ hyprland.prefix }}
- -B
- ./build
- name: Build {{ pkg }}
ansible.builtin.command:
creates: "{{ xdg_desktop_portal_hyprland.git_path }}/build/xdg-desktop-portal-hyprland"
chdir: "{{ xdg_desktop_portal_hyprland.git_path }}"
argv:
- cmake
- --build
- ./build
- --config
- Release
- --target
- all
- -j
- "{{ ansible_processor_nproc | int }}"
- name: Install {{ pkg }}
become: true
ansible.builtin.command:
creates: "{{ path.bin }}/hyprland-share-picker"
chdir: "{{ xdg_desktop_portal_hyprland.git_path }}"
argv:
- cmake
- --install
- ./build

View File

@@ -49,12 +49,6 @@ path_profile:
Linux: /etc/profile.d
FreeBSD: /etc/profile.d
# Per package variables
# neovim {{{
neovim_version: master
neovim_build_type: Release
# }}}
# {{{ nerdfonts
nerdfonts_install_list:
- JetBrainsMono
- FiraCode
@@ -62,13 +56,3 @@ nerdfonts_install_list:
- GoMono
- Hack
- Symbols
nerdfonts_base_url: https://github.com/ryanoasis/nerd-fonts/releases/latest/download
nerdfonts_install_path: share/fonts
# }}}
# rust {{{
rust_pkgname: rust
# }}}
# {{{ zsh
zsh_base_url: git://git.code.sf.net/p/zsh/code
zsh_version: zsh-5.9
# }}}

View File

@@ -1,17 +0,0 @@
# vim: set filetype=yaml.ansible :
---
bitwarden:
flatpak:
name: com.bitwarden.desktop
remote: flathub
appimage:
link_name: bitwarden
name: bitwarden.appimage
url: https://vault.bitwarden.com/download/?app=desktop&platform=linux&variant=appimage
snap: bitwarden
cask: bitwarden
method:
Fedora: flatpak
Alpine: flatpak
Ubuntu: snap
MacOSX: cask

View File

@@ -1,16 +0,0 @@
# vim: set filetype=yaml.ansible :
---
broot:
version: 1.44.7
build_deps:
Debian:
- build-essential
- libxcb1-dev
- libxcb-render0-dev
- libxcb-shape0-dev
- libxcb-xfixes0-dev
RedHat:
- libxcb
Alpine:
- libxcb-dev
Darwin: []

View File

@@ -1,23 +0,0 @@
# vim: set filetype=yaml.ansible :
---
carapace:
version: 0.2.0
pkgs:
Debina:
- carapace-bin
RedHat:
- carapace-bin
Darwin:
- carapace
Alpine:
- carapace
repo:
RedHat:
name: carapace-yum
description: carapace-yum
baseurl: https://yum.fury.io/rsteube/
Debian:
repo: "deb [trusted=yes] https://apt.fury.io/rsteube/ /"
name: carapace
Darwin: {}
Alpine: {}

View File

@@ -1,5 +0,0 @@
# vim: set filetype=yaml.ansible :
---
cbfmt:
pkgs:
- cbfmt

View File

@@ -1,4 +0,0 @@
# vim: set filetype=yaml.ansible :
---
choose:
version: 1.3.6

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