Squash merge move_to_single_file_pkgs into main
This commit is contained in:
@@ -1,5 +1,63 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: air
|
||||
## Description: application auto reload for go
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: go_install
|
||||
---
|
||||
- name: Append air to pkg_go
|
||||
- name: Set air default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/air-verse/air@latest'] }}"
|
||||
air:
|
||||
methods:
|
||||
- source
|
||||
install_files:
|
||||
- to: bin/air
|
||||
install_url: github.com/air-verse/air
|
||||
pkg_deps:
|
||||
- go
|
||||
version: "{{ air_version | default('latest')}}"
|
||||
# }}}
|
||||
- name: Start air configuration
|
||||
when:
|
||||
- "'air' not in __configured"
|
||||
block:
|
||||
- name: Set air install method
|
||||
when:
|
||||
- air_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
air_imethod: "{{ imethod if imethod in air.methods else air.methods[0] }}"
|
||||
|
||||
- name: Set air build facts
|
||||
when:
|
||||
- air_imethod == 'source'
|
||||
block:
|
||||
- name: Set air install package
|
||||
ansible.builtin.set_fact:
|
||||
air_go_pkg:
|
||||
url: "{{ air.install_url }}@{{ air.version }}"
|
||||
bin: "{{ path_bin }}/air"
|
||||
|
||||
- name: Clean existing air install
|
||||
when:
|
||||
- clean_install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_clean: "{{ pkg_clean + air.install_files }}"
|
||||
|
||||
- name: Configure pkg dependencies
|
||||
loop: "{{ air.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: dep
|
||||
ansible.builtin.include_tasks: "pkgs/{{ dep }}.yml"
|
||||
|
||||
- name: Add air to install list
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + [air_go_pkg] }}"
|
||||
|
||||
- name: Finalise air source install
|
||||
ansible.builtin.set_fact:
|
||||
air_install: "{{ air_imethod }}={{ air_go_pkg }}"
|
||||
|
||||
- name: Finalize air configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'air': air_install } ) }}"
|
||||
|
||||
@@ -1,24 +1,162 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: alacritty
|
||||
## Description: GPU accelerated terminal emulator written in rust
|
||||
## Version: 0.16.1
|
||||
## Methods: [source, system]
|
||||
## Helpers: cargo_build
|
||||
---
|
||||
- name: Append alacritty
|
||||
- name: Set alacritty default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
alacritty:
|
||||
methods:
|
||||
- source
|
||||
- system
|
||||
build_flags: "{{ alacritty_build_flags | default( ['--release'] ) }}"
|
||||
version: "{{ alacritty_version | default('0.16.1') }}"
|
||||
pkgname:
|
||||
RedHat: alacritty
|
||||
Debian: alacritty
|
||||
Alpine: alacritty
|
||||
git:
|
||||
repo: https://github.com/alacritty/alacritty
|
||||
version: "{{ alacritty_version | default('v0.16.1') }}"
|
||||
install_files:
|
||||
- from: target/release/alacritty
|
||||
to: bin/alacritty
|
||||
mode: '0755'
|
||||
- from: extra/logo/alacritty-term.svg
|
||||
to: share/pixmaps/Alacritty.svg
|
||||
mode: '0644'
|
||||
- from: extra/linux/Alacritty.desktop
|
||||
to: share/applications/Alacritty.desktop
|
||||
mode: '0644'
|
||||
pkg_deps:
|
||||
- git
|
||||
- cargo
|
||||
- cmake
|
||||
bds:
|
||||
RedHat:
|
||||
- fontconfig-devel
|
||||
- freetype-devel
|
||||
- g++
|
||||
- libxcb-devel
|
||||
- libxkbcommon-devel
|
||||
- desktop-file-utils
|
||||
Debian:
|
||||
- g++
|
||||
- pkg-config
|
||||
- libfontconfig1-dev
|
||||
- libxcb-xfixes0-dev
|
||||
- libxkbcommon-dev
|
||||
- python3
|
||||
- libfreetype6-dev
|
||||
- desktop-file-utils
|
||||
Alpine:
|
||||
- pkgconf
|
||||
- freetype-dev
|
||||
- fontconfig-dev
|
||||
- python3
|
||||
- libxcb-dev
|
||||
- g++
|
||||
- libxkbcommon-dev
|
||||
- desktop-file-utils
|
||||
Archlinux:
|
||||
- freetype2
|
||||
- fontconfig
|
||||
- pkg-config
|
||||
- make
|
||||
- libxcb
|
||||
- libxkbcommon
|
||||
- python
|
||||
- desktop-file-utils
|
||||
FreeBSD:
|
||||
- freetype2
|
||||
- fontconfig
|
||||
- pkgconf
|
||||
- python3
|
||||
- desktop-file-utils
|
||||
# }}}
|
||||
- name: Start alacritty configuration
|
||||
when:
|
||||
- "'alacritty' not in __configured"
|
||||
block:
|
||||
- name: Load alacritty configuration
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/alacritty.yml
|
||||
|
||||
- name: Append alacritty to pkg_cargo
|
||||
- name: Set alacritty install method
|
||||
when:
|
||||
- alacritty.method == 'cargo'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + alacritty.build_deps }}"
|
||||
pkg_cargo: "{{ pkg_cargo + [alacritty.cargo] }}"
|
||||
- alacritty_imethod is undefined
|
||||
block:
|
||||
- name: Configure for RedHat enterprise linux 10
|
||||
when:
|
||||
- os_family == 'RedHat'
|
||||
- ansible_distribution_major_version|int <= 10
|
||||
ansible.builtin.set_fact:
|
||||
alacritty_imethod: source
|
||||
|
||||
- name: Append alacritty to pkg_cask
|
||||
- name: Fallback configuration for alacritty
|
||||
when:
|
||||
- alacritty_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
alacritty_imethod: "{{ imethod if imethod in alacritty.methods else alacritty.methods[0] }}"
|
||||
|
||||
- name: Configure alacritty source install # {{{
|
||||
when:
|
||||
- alacritty.method == 'cask'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['alacritty'] }}"
|
||||
- alacritty_imethod == "source"
|
||||
block:
|
||||
- name: Set alacritty build facts
|
||||
ansible.builtin.set_fact:
|
||||
alacritty_src_install:
|
||||
build_flags: "{{ alacritty.build_flags }}"
|
||||
source_dir: "{{ d_cache.path }}/alacritty"
|
||||
git: "{{ alacritty.git }}"
|
||||
version: "{{ alacritty.version }}"
|
||||
files: "{{ alacritty.install_files }}"
|
||||
name: alacritty
|
||||
alacritty_bds: "{{ alacritty.bds[os_family] }}"
|
||||
|
||||
- name: Set alacritty_configured
|
||||
- name: Set alacritty install extra build deps
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- ansible_distribution_major_version|int <= 8
|
||||
block:
|
||||
- name: Add extra dependencies for EL7
|
||||
when:
|
||||
- ansible_distribution_major_version == 7
|
||||
ansible.builtin.set_fact:
|
||||
alacritty_bds: "{{ alacritty_bds + ['xcb-util-devel', '@Development Tools'] }}"
|
||||
|
||||
- name: Add extra dependencies for EL8
|
||||
when:
|
||||
- ansible_distribution_major_version == 8
|
||||
ansible.builtin.set_fact:
|
||||
alacritty_bds: "{{ alacritty_bds + ['@Development Tools'] }}"
|
||||
|
||||
- name: Configure pkg dependencies
|
||||
loop: "{{ alacritty.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: dep
|
||||
ansible.builtin.include_tasks: "pkgs/{{ dep }}.yml"
|
||||
|
||||
- name: Append build dependencies and cargo config
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + alacritty_bds }}"
|
||||
pkg_cargo_build: "{{ pkg_cargo_build + [alacritty_src_install] }}"
|
||||
|
||||
- name: Finalise alacritty source install
|
||||
ansible.builtin.set_fact:
|
||||
alacritty_install: "{{ alacritty_imethod }}={{ alacritty_src_install }}+{{ alacritty_bds }}"
|
||||
|
||||
- name: Configure alacritty system install
|
||||
when:
|
||||
- alacritty_imethod == 'system'
|
||||
block:
|
||||
- name: Queue alacritty for installation
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [ alacritty.pkgname[os_family] ] }}"
|
||||
|
||||
- name: Finalise alacritty system install
|
||||
ansible.builtin.set_fact:
|
||||
alacritty_install: "{{ alacritty_imethod }}={{ alacritty.pkgname[os_family] ]}}"
|
||||
|
||||
- name: Complete alacritty configuration
|
||||
ansible.builtin.set_fact:
|
||||
alacritty_configured: true
|
||||
__configured: "{{ __configured | combine( { 'alacritty': alacritty_install } ) }}"
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append ansible-lint to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['ansible-lint'] }}"
|
||||
|
||||
- name: Dump pkg_sys
|
||||
debug:
|
||||
var: pkg_sys
|
||||
@@ -1,5 +1,71 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: ansible
|
||||
## Description: simple infrastructure as code tool
|
||||
## Version: latest
|
||||
## Methods: [system, source]
|
||||
## Helpers: pipx
|
||||
---
|
||||
- name: Append ansible to pkg_sys
|
||||
- name: Set ansible default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['ansible'] }}"
|
||||
ansible:
|
||||
methods:
|
||||
- system
|
||||
- source
|
||||
pkgname:
|
||||
RedHat: ansible
|
||||
Debian: ansible
|
||||
Alpine: ansible
|
||||
Archlinux: ansible
|
||||
pip: ansible
|
||||
pkg_deps:
|
||||
- pipx
|
||||
# }}}
|
||||
- name: Configure ansible
|
||||
when:
|
||||
- "'ansible' not in __configured"
|
||||
block:
|
||||
- name: Set ansible install method
|
||||
when:
|
||||
- ansible_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
ansible_imethod: "{{ imethod if imethod in ansible.methods else ansible.methods[0] }}"
|
||||
|
||||
- name: Append ansible to system package manager install list
|
||||
when:
|
||||
- ansible_imethod == "system"
|
||||
block:
|
||||
- name: Queue ansible sytem install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [ ansible.pkgname[os_family] ] }}"
|
||||
|
||||
- name: Finalise ansible system install
|
||||
ansible.builtin.set_fact:
|
||||
ansible_install: "{{ ansible_imethod }}={{ ansible.pkgname[os_family] }}"
|
||||
|
||||
- name: Append ansible to pipx install list
|
||||
when:
|
||||
- ansible_imethod == 'source'
|
||||
block:
|
||||
- name: Add ansible package deps
|
||||
loop: "{{ ansible.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: dep
|
||||
ansible.builtin.include_tasks: pkgs/{{ dep }}.yml
|
||||
|
||||
- name: Configure ansible source install
|
||||
ansible.builtin.set_fact:
|
||||
ansible_src_install:
|
||||
name: "{{ ansible.pkgname['pip'] }}"
|
||||
|
||||
- name: Queue ansible source install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + [ansible_src_install] }}"
|
||||
|
||||
- name: Finalise ansible source install
|
||||
ansible.builtin.set_fact:
|
||||
ansible_install: "{{ ansible_imethod }}={{ ansible_src_install }}"
|
||||
|
||||
- name: Complete ansible configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'ansible': ansible_install } ) }}"
|
||||
|
||||
80
tasks/pkgs/ansible_lint.yml
Normal file
80
tasks/pkgs/ansible_lint.yml
Normal file
@@ -0,0 +1,80 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: ansible_lint
|
||||
## Description: Linter for ansible yaml
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: pipx
|
||||
---
|
||||
- name: Set ansible_lint default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
ansible_lint_version: "{{ ansible_lint_version | default('latest') }}"
|
||||
ansible_lint:
|
||||
methods:
|
||||
- source
|
||||
- system
|
||||
pkgname:
|
||||
RedHat: ansible-lint
|
||||
Debian: ansible-lint
|
||||
Archlinux: ansible-lint
|
||||
Alpine: ansible-lint
|
||||
FreeBSD: py311-ansible-lint
|
||||
pip:
|
||||
name: ansible_lint
|
||||
pkg_deps:
|
||||
- pipx
|
||||
# }}}
|
||||
- name: Configure ansible_lint
|
||||
when:
|
||||
- "'ansible_lint' not in __configured"
|
||||
block:
|
||||
- name: Set ansible_lint install method
|
||||
when:
|
||||
- ansible_lint_imethod is undefined
|
||||
block:
|
||||
- name: Configure for RedHat <= 10
|
||||
when:
|
||||
- os_family == 'RedHat'
|
||||
- ansible_distribution_major_version|int <= 10
|
||||
ansible.builtin.set_fact:
|
||||
ansible_lint_imethod: source
|
||||
|
||||
- name: Fallback set ansible_lint install method
|
||||
when:
|
||||
- ansible_lint_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
ansible_lint_imethod: "{{ imethod if imethod in ansible_lint.methods else ansible_lint.methods[0] }}"
|
||||
|
||||
- name: Configure pipx source install
|
||||
when:
|
||||
- ansible_lint_imethod == "source"
|
||||
block:
|
||||
- name: Add ansible_lint to pipx install list
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + [ansible_lint.pkgname['pip']] }}"
|
||||
|
||||
- name: Finalise ansible_lint source install
|
||||
ansible.builtin.set_fact:
|
||||
ansible_lint_install: "{{ ansible_lint_imethod }}={{ ansible_lint.pkgname['pip'] }}"
|
||||
|
||||
- name: Append ansible-lint to system install list
|
||||
when:
|
||||
- ansible_lint_imethod == 'system'
|
||||
block:
|
||||
- name: Add ansible lint package deps
|
||||
loop: "{{ ansible_lint.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: dep
|
||||
ansible.builtin.include_tasks: pkgs/{{ dep }}.yml
|
||||
|
||||
- name: Queue ansible_lint system install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [ansible_lint_pkgname[os_family]] }}"
|
||||
|
||||
- name: Finalise ansible_lint system install
|
||||
ansible.builtin.set_fact:
|
||||
ansible_lint_install: "{{ ansible_lint_imethod }}={{ ansible_lint.pkgname[os_family] }}"
|
||||
|
||||
- name: Complete ansible_lint configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'ansible_lint': ansible_lint_install } ) }}"
|
||||
@@ -1,13 +1,52 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: ansible_ls
|
||||
## Description: language server for ansible yaml
|
||||
## Version: latest
|
||||
## Methods: [source, system]
|
||||
## Helpers: npm
|
||||
---
|
||||
- name: Add ansible_ls
|
||||
- name: Set ansible_ls default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
ansible_ls:
|
||||
methods:
|
||||
- source
|
||||
- system
|
||||
npm_pkg:
|
||||
name: '@ansible/ansible-language-server'
|
||||
global: true
|
||||
version: "{{ ansible_ls_version | default('latest') }}"
|
||||
pkg_deps:
|
||||
- nodejs
|
||||
# }}}
|
||||
- name: Configure ansible_ls
|
||||
when:
|
||||
- ansible_ls_configured is undefined
|
||||
- "'ansible_ls' not in __configured"
|
||||
block:
|
||||
- name: Append ansible-language-server to pkg_npm
|
||||
- name: Set ansible_ls install method
|
||||
when:
|
||||
- ansible_ls_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@ansible/ansible-language-server'] }}"
|
||||
ansible_ls_imethod: "{{ imethod if imethod in ansible_ls.methods else ansible_ls.methods[0] }}"
|
||||
|
||||
- name: Set ansible_ls_configured
|
||||
- name: Configure ansible_ls source install
|
||||
when:
|
||||
- ansible_ls_imethod == 'source'
|
||||
block:
|
||||
- name: Load required installation dependencies
|
||||
loop: "{{ ansible_ls.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: dep
|
||||
ansible.builtin.include_tasks: "pkgs/{{ dep }}.yml"
|
||||
|
||||
- name: Append ansible ls to pkg_npm
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + [ansible_ls.npm_pkg] }}"
|
||||
|
||||
- name: Finalise ansible_ls source install
|
||||
ansible.builtin.set_fact:
|
||||
ansible_ls_install: "{{ ansible_ls_imethod }}={{ ansible_ls.npm_pkg }}"
|
||||
|
||||
- name: Finalise ansible_ls configuration
|
||||
ansible.builtin.set_fact:
|
||||
ansible_ls_configured: true
|
||||
__configured: "{{ __configured | combine( { 'ansible_ls': ansible_ls_install } ) }}"
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add aquamarine
|
||||
when:
|
||||
- aquamarine_configured is undefined
|
||||
block:
|
||||
- name: Load aquamarine config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/aquamarine.yml
|
||||
|
||||
- name: Append aquamarine pkg_deps
|
||||
loop: "{{ aquamarine.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: aquamarine_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ aquamarine_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ aquamarine_pkg_dep }}.yml"
|
||||
|
||||
- name: Append aquamarine to pkg_sys and pkg_src
|
||||
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
|
||||
@@ -1,13 +1,50 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: bashls
|
||||
## Description: language server for bash (sh compatible)
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: npm
|
||||
---
|
||||
- name: Add bashls
|
||||
- name: Set bashls default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
bashls:
|
||||
methods:
|
||||
- source
|
||||
npm_pkg:
|
||||
name: bash-language-server
|
||||
global: true
|
||||
version: latest
|
||||
# }}}
|
||||
- name: Configure bashls
|
||||
when:
|
||||
- bashls_configured is undefined
|
||||
- "'bashls' not in __configured"
|
||||
block:
|
||||
- name: Append bash-language-server to pkg_npm
|
||||
- name: Set bashls install method
|
||||
when:
|
||||
- bashls_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['bash-language-server'] }}"
|
||||
bashls_imethod: "{{ imethod if imethod in bashls.methods else bashls.methods[0] }}"
|
||||
|
||||
- name: Configure bashls source install
|
||||
when:
|
||||
- bashls_imethod == 'source'
|
||||
block:
|
||||
- name: Set bashls npm_pkg config
|
||||
ansible.builtin.set_fact:
|
||||
bashls_npm_pkg:
|
||||
name: "{{ bashls.npm_pkg.name }}"
|
||||
global: "{{ bashls.npm_pkg.global }}"
|
||||
version: "{{ bashls_version | default(bashls.npm_pkg.version) }}"
|
||||
|
||||
- name: Append bashls to pkg_npm
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + [bashls_npm_pkg] }}"
|
||||
|
||||
- name: Finalise bashls source install
|
||||
ansible.builtin.set_fact:
|
||||
bashls_install: "{{ bashls_imethod }}={{ bashls_npm_pkg }}"
|
||||
|
||||
- name: Set bashls_configured
|
||||
ansible.builtin.set_fact:
|
||||
bashls_configured: true
|
||||
__configured: "{{ __configured | combine( { 'bashls': bashls_install } ) }}"
|
||||
|
||||
@@ -1,5 +1,65 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: bat
|
||||
## Description: cat replacement with wings
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: cargo
|
||||
---
|
||||
- name: Append bat to pkg_sys
|
||||
- name: Set bat default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['bat'] }}"
|
||||
bat:
|
||||
methods:
|
||||
- source
|
||||
- system
|
||||
pkgname:
|
||||
RedHat: bat
|
||||
Debian: bat
|
||||
Archlinux: bat
|
||||
Alpine: bat
|
||||
Darwin: bat
|
||||
FreeBSD: bat
|
||||
# }}}
|
||||
- name: Start bat configuration
|
||||
when:
|
||||
- "'bat' not in __configured"
|
||||
block:
|
||||
- name: Set bat install method
|
||||
when:
|
||||
- bat_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
bat_imethod: "{{ imethod if imethod in bat.methods else bat.methods[0] }}"
|
||||
|
||||
- name: Configure bat source install
|
||||
when:
|
||||
- bat_imethod == "source"
|
||||
block:
|
||||
- name: Set bat cargo configuration
|
||||
ansible.builtin.set_fact:
|
||||
bat_cargo_install:
|
||||
name: bat
|
||||
locked: true
|
||||
|
||||
- name: Queue bat for cargo install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + [bat_cargo_install] }}"
|
||||
|
||||
- name: Finalise bat source install
|
||||
ansible.builtin.set_fact:
|
||||
bat_install: "{{ bat_imethod }}={{ bat_cargo_install }}"
|
||||
|
||||
- name: Configure bat system install
|
||||
when:
|
||||
- bat_imethod == "system"
|
||||
block:
|
||||
- name: Append bat to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [ bat.pkgname[os_family] ] }}"
|
||||
|
||||
- name: Finalise bat system install
|
||||
ansible.builtin.set_fact:
|
||||
bat_install: "{{ bat_imethod }}={{ bat.pkgname[os_family] }}"
|
||||
|
||||
- name: Finalize bat configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'bat': bat_install } ) }}"
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add bitwarden
|
||||
when:
|
||||
- bitwarden_configured is undefined
|
||||
block:
|
||||
- name: Load bitwarden config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/bitwarden.yml
|
||||
|
||||
- name: Append bitwarden to pkg_flatpak
|
||||
when:
|
||||
- bitwarden.method == 'flatpak'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + [bitwarden.pkg] }}"
|
||||
|
||||
- name: Append bitwarden to pkg_appimage
|
||||
when:
|
||||
- bitwarden.method == 'appimage'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_appimage: "{{ pkg_appimage + [bitwarden.pkg] }}"
|
||||
|
||||
- name: Append bitwarden to pkg_cask
|
||||
when:
|
||||
- bitwarden.method == 'cask'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + [bitwarden.pkg] }}"
|
||||
|
||||
- name: Set bitwarden_configured
|
||||
ansible.builtin.set_fact:
|
||||
bitwarden_configured: true
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append blender to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['blender'] }}"
|
||||
|
||||
- name: Append blender to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['blender'] }}"
|
||||
@@ -1,24 +1,85 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: broot
|
||||
## Description: terminal utility for navigating directory trees
|
||||
## Version: 1.55.0
|
||||
## Methods: [source, system]
|
||||
## Helpers: cargo
|
||||
---
|
||||
- name: Add broot
|
||||
- name: Set default broot values # {{{
|
||||
ansible.builtin.set_fact:
|
||||
broot:
|
||||
methods:
|
||||
- source
|
||||
- system
|
||||
version: 1.55.0
|
||||
build_deps:
|
||||
Debian:
|
||||
- build-essential
|
||||
- libxcb1-dev
|
||||
- libxcb-render0-dev
|
||||
- libxcb-shape0-dev
|
||||
- libxcb-xfixes0-dev
|
||||
RedHat:
|
||||
- libxcb-devel
|
||||
Alpine:
|
||||
- libxcb-dev
|
||||
Darwin: []
|
||||
# }}}
|
||||
- name: Configure broot
|
||||
when:
|
||||
- "'broot' not in __configured"
|
||||
block:
|
||||
- name: Load broot config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/broot.yml
|
||||
|
||||
- name: Append broot to pkg_sys and pkg_cargo
|
||||
- name: Set broot install method
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + broot.deps }}"
|
||||
pkg_cargo: "{{ pkg_cargo + [broot] }}"
|
||||
- broot_imethod is undefined
|
||||
block:
|
||||
- name: Configure for RedHat <= 10
|
||||
when:
|
||||
- os_family == 'RedHat'
|
||||
- os_version.major | int <= 10
|
||||
ansible.builtin.set_fact:
|
||||
broot_imethod: source
|
||||
|
||||
- name: Append broot to pkg_sys
|
||||
- name: Fallback set ansible_lint install method
|
||||
when:
|
||||
- broot_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
broot_imethod: "{{ imethod if imethod in broot.methods else broot.methods[0] }}"
|
||||
|
||||
- name: Configure broot source install
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['broot'] }}"
|
||||
- broot_imethod == 'source'
|
||||
block:
|
||||
- name: Set cargo build options
|
||||
ansible.builtin.set_fact:
|
||||
broot_cargo_install:
|
||||
name: broot
|
||||
version: "{{ broot.version }}"
|
||||
|
||||
- name: Append broot to install list
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + broot.build_deps[os_family] }}"
|
||||
pkg_cargo: "{{ pkg_cargo + [broot_cargo_install] }}"
|
||||
|
||||
- name: Finalise broot source install
|
||||
ansible.builtin.set_fact:
|
||||
broot_install: "{{ broot_imethod }}={{ broot_cargo_install }}+{{ broot.build_deps[os_family] }}"
|
||||
|
||||
- name: Configure broot system install
|
||||
when:
|
||||
- broot_imethod == 'system'
|
||||
block:
|
||||
- name: Append broot to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['broot'] }}"
|
||||
|
||||
- name: Finalise broot system install
|
||||
ansible.builtin.set_fact:
|
||||
broot_install: "{{ broot_imethod }}=broot"
|
||||
|
||||
- name: Set broot_configured
|
||||
ansible.builtin.set_fact:
|
||||
broot_configured: true
|
||||
__configured: "{{ __configured | combine( { 'broot': broot_install } ) }}"
|
||||
|
||||
@@ -1,5 +1,37 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: btop
|
||||
## Description: TUI system monitor that looks
|
||||
## Version: system
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Append btop to pkg_ssys
|
||||
- name: Set default btop options # {{{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['btop'] }}"
|
||||
btop:
|
||||
methods:
|
||||
- system
|
||||
pkgname: btop
|
||||
# }}}
|
||||
- name: Configure btop install
|
||||
when:
|
||||
- "'btop' not in __configured"
|
||||
block:
|
||||
- name: Set btop install method
|
||||
ansible.builtin.set_fact:
|
||||
btop_imethod: "{{ imethod if imethod in btop.methods else btop.methods[0] }}"
|
||||
|
||||
- name: Configure btop system install
|
||||
when:
|
||||
- btop_imethod == 'system'
|
||||
block:
|
||||
- name: Append btop to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [btop.pkgname] }}"
|
||||
|
||||
- name: Finalise btop system install
|
||||
ansible.builtin.set_fact:
|
||||
btop_install: "{{ btop_imethod }}={{ btop.pkgname }}"
|
||||
- name: Finalise btop configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'btop': btop_install } ) }}"
|
||||
|
||||
@@ -1,13 +1,49 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: buf
|
||||
## Description: A CLI tool for working with protocols buffers
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: go_install
|
||||
---
|
||||
- name: Add buf
|
||||
- name: Set default buf values # {{{
|
||||
ansible.builtin.set_fact:
|
||||
buf:
|
||||
methods:
|
||||
- source
|
||||
build_deps:
|
||||
- go
|
||||
version: latest
|
||||
go_pkg: github.com/bufbuild/buf/cmd/buf
|
||||
# }}}
|
||||
- name: Configure bug install
|
||||
when:
|
||||
- buf_configured is undefined
|
||||
- "'buf' not in __configured"
|
||||
block:
|
||||
- name: Append buf to pkg_go
|
||||
- name: Set buf install method
|
||||
when:
|
||||
- buf_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf/cmd/buf@latest'] }}"
|
||||
buf_imethod: "{{ imethod if imethod in buf.methods else buf.methods[0] }}"
|
||||
|
||||
- name: Set buf_configured
|
||||
- name: Configure buf source install
|
||||
when:
|
||||
- buf_imethod == 'source'
|
||||
block:
|
||||
- name: Configure buf go install
|
||||
ansible.builtin.set_fact:
|
||||
buf_go_install:
|
||||
bin: buf
|
||||
url: "{{ buf.go_pkg }}@{{ buf.version }}"
|
||||
|
||||
- name: Append buf to pkg_go
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + [buf_go_install] }}"
|
||||
|
||||
- name: Finalise buf source install
|
||||
ansible.builtin.set_fact:
|
||||
buf_install: "{{ buf_imethod }}={{ buf_go_install }}"
|
||||
|
||||
- name: Finalise buf configuration
|
||||
ansible.builtin.set_fact:
|
||||
buf_configured: true
|
||||
__configured: "{{ __configured | combine( { 'buf': buf_install } ) }}"
|
||||
|
||||
@@ -1,13 +1,45 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: bufls
|
||||
## Description: a language server for protocol buffers
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: go_install
|
||||
---
|
||||
- name: Add bufls
|
||||
- name: Set default bufls options # {{{
|
||||
ansible.builtin.set_fact:
|
||||
bufls:
|
||||
methods:
|
||||
- source
|
||||
version: latest
|
||||
go_pkg: github.com/bufbuild/buf-language-server/cmd/bufls
|
||||
# }}}
|
||||
- name: Configure bufls install
|
||||
when:
|
||||
- bufls_configured is undefined
|
||||
- "'bufls' not in __configured"
|
||||
block:
|
||||
- name: Append bufls to pkg_go
|
||||
- name: Set bufls install method
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf-language-server/cmd/bufls@latest'] }}"
|
||||
bufls_imethod: "{{ imethod if imethod in bufls.methods else bufls.methods[0] }}"
|
||||
|
||||
- name: Set bufls_configured
|
||||
- name: Configure bufls source install
|
||||
when:
|
||||
- bufls_imethod == 'source'
|
||||
block:
|
||||
- name: Configure bufls go install
|
||||
ansible.builtin.set_fact:
|
||||
bufls_go_install:
|
||||
url: "{{ bufls.go_pkg }}@{{ bufls.version }}"
|
||||
bin: "{{ path_bin }}/bufls"
|
||||
|
||||
- name: Queue bufls go install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + [bufls_go_install] }}"
|
||||
|
||||
- name: Finalise bufls go install
|
||||
ansible.builtin.set_fact:
|
||||
bufls_install: "{{ bufls_imethod }}={{ bufls_go_install }}"
|
||||
|
||||
- name: Finalise bufls configuration
|
||||
ansible.builtin.set_fact:
|
||||
bufls_configured: true
|
||||
__configured: "{{ __configured | combine( { 'bufls': bufls_install } ) }}"
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load carapace config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/carapace.yml
|
||||
|
||||
- name: Enable carapace yum repository
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
become: true
|
||||
ansible.builtin.yum_repository:
|
||||
name: "{{ carapace.repo.name }}"
|
||||
description: "{{ carapace.repo.description }}"
|
||||
baseurl: "{{ carapace.repo.baseurl }}"
|
||||
enabled: true
|
||||
gpgcheck: false
|
||||
state: present
|
||||
|
||||
- name: Enable carapace apt repository
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
become: true
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "{{ carapace.repo.repo }}"
|
||||
filename: "{{ carapace.repo.name }}"
|
||||
state: present
|
||||
update_cache: false
|
||||
|
||||
- name: Append carapace to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + carapace.pkgs }}"
|
||||
52
tasks/pkgs/cargo.yml
Normal file
52
tasks/pkgs/cargo.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: cargo
|
||||
## Description: the Rust package manager
|
||||
## Version: system
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Set default cargo values # {{{
|
||||
ansible.builtin.set_fact:
|
||||
cargo:
|
||||
methods:
|
||||
- system
|
||||
pkgname:
|
||||
RedHat: cargo
|
||||
Debian: cargo
|
||||
Alpine: cargo
|
||||
FreeBSD: cargo
|
||||
# }}}
|
||||
- name: Configure cargo
|
||||
when:
|
||||
- "'cargo' not in __configured"
|
||||
block:
|
||||
- name: Set cargo install method
|
||||
when:
|
||||
- cargo_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
cargo_imethod: "{{ imethod if imethod in cargo.methods else cargo.methods[0] }}"
|
||||
|
||||
- name: Add dependencies
|
||||
when:
|
||||
- cargo_pkgdeps is defined
|
||||
loop: "{{ cargo_pkgdeps }}"
|
||||
loop_control:
|
||||
loop_var: dep
|
||||
ansible.builtin.include_tasks: "pkgs/{{ dep }}.yml"
|
||||
|
||||
- name: Append cargo to install list
|
||||
when:
|
||||
- cargo_imethod == "system"
|
||||
block:
|
||||
- name: Queue cargo install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [cargo.pkgname[os_family]] }}"
|
||||
|
||||
- name: Finalise cargo system install
|
||||
ansible.builtin.set_fact:
|
||||
cargo_install: "{{ cargo_imethod }}={{ cargo.pkgname[os_family] }}"
|
||||
|
||||
- name: Finalize cargo configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine ( { 'cargo': cargo_install } ) }}"
|
||||
@@ -1,6 +1,46 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: cbfmt
|
||||
## Description: code block formatter
|
||||
## Version: latest
|
||||
## Methods: system
|
||||
## Helpers: cargo
|
||||
---
|
||||
- name: Set cbfmt config
|
||||
- name: Set default cbfmt values # {{{
|
||||
ansible.builtin.set_fact:
|
||||
cbfmt:
|
||||
pkgs: "{{ pkgconfig.cbfmt.pkgs }}"
|
||||
methods:
|
||||
- source
|
||||
pkgname: cbfmt
|
||||
pkg_deps:
|
||||
- cargo
|
||||
# }}}
|
||||
- name: Configure cbfmt install
|
||||
when:
|
||||
- "'cbfmt' not in __configured"
|
||||
block:
|
||||
- name: Set cbfmt install method
|
||||
when:
|
||||
- cbfmt_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
cbfmt_imethod: "{{ imethod if imethod in cbfmt.methods else cbfmt.methods[0] }}"
|
||||
|
||||
- name: Configure cbfmt source install
|
||||
when:
|
||||
- cbfmt_imethod == 'source'
|
||||
block:
|
||||
- name: Configure cbfmt cargo install
|
||||
ansible.builtin.set_fact:
|
||||
cbfmt_cargo_install:
|
||||
name: cbfmt
|
||||
- name: Queue cbfmt cargo install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + [cbfmt_cargo_install] }}"
|
||||
|
||||
- name: Finalise cbfmt cargo install
|
||||
ansible.builtin.set_fact:
|
||||
cbfmt_install: "{{ cbfmt_imethod }}={{ cbfmt_cargo_install }}"
|
||||
|
||||
- name: Finalise cbfmt configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'cbfmt': cbfmt_install } ) }}"
|
||||
|
||||
@@ -1,13 +1,47 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: cheet
|
||||
## Description: create and view interactive cheat sheets
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: go_install
|
||||
---
|
||||
- name: Add cheat
|
||||
- name: Set cheat default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
cheat:
|
||||
methods:
|
||||
- source
|
||||
go_pkg: github.com/cheat/cheat/cmd/cheat
|
||||
version: latest
|
||||
# }}}
|
||||
- name: Configure cheat
|
||||
when:
|
||||
- cheat_configured is undefined
|
||||
- "'cheat' not in __configured"
|
||||
block:
|
||||
- name: Append cheat to pkg_go
|
||||
- name: Set cheat install method
|
||||
when:
|
||||
- cheat_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/cheat/cheat/cmd/cheat@latest'] }}"
|
||||
cheat_imethod: "{{ imethod if imethod in cheat.methods else cheat.methods[0] }}"
|
||||
|
||||
- name: Configure cheat source install
|
||||
when:
|
||||
- cheat_imethod == 'source'
|
||||
block:
|
||||
- name: Configure cheat go install
|
||||
ansible.builtin.set_fact:
|
||||
cheat_go_install:
|
||||
url: "{{ cheat.go_pkg }}@{{ cheat.version }}"
|
||||
bin: "{{ path_bin }}/cheat"
|
||||
|
||||
- name: Append cheat to pkg_go
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + [cheat_go_install] }}"
|
||||
|
||||
- name: Finalise cheat go install
|
||||
ansible.builtin.set_fact:
|
||||
cheat_install: "{{ cheat_imethod }}={{ cheat_go_install }}"
|
||||
|
||||
- name: Set cheat_configured
|
||||
ansible.builtin.set_fact:
|
||||
cheat_configured: true
|
||||
__configured: "{{ __configured | combine( { 'cheat': cheat_install } ) }}"
|
||||
|
||||
@@ -1,13 +1,47 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: checkmake
|
||||
## Description: linter for makefiles
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: go_install
|
||||
---
|
||||
- name: Add checkmake
|
||||
- name: Set checkmake default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
checkmake:
|
||||
methods:
|
||||
- source
|
||||
go_pkg: github.com/checkmake/checkmake/cmd/checkmake
|
||||
version: latest
|
||||
# }}}
|
||||
- name: Configure checkmake
|
||||
when:
|
||||
- checkmake_configured is undefined
|
||||
block:
|
||||
- name: Add checkmake to pkg_go
|
||||
- name: Set checkmake install method
|
||||
when:
|
||||
- checkmake_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/mrtazz/checkmake/cmd/checkmake@latest'] }}"
|
||||
checkmake_imethod: "{{ imethod if imethod in checkmake.methods else checkmake.methods[0] }}"
|
||||
|
||||
- name: Configure checkmake source install
|
||||
when:
|
||||
- checkmake_imethod == 'source'
|
||||
block:
|
||||
- name: Configure checkmake go install
|
||||
ansible.builtin.set_fact:
|
||||
checkmake_go_install:
|
||||
url: "{{ checkmake.go_pkg }}@{{ checkmake.version }}"
|
||||
bin: "{{ path_bin }}/checkmake"
|
||||
|
||||
- name: Queue checkmake source install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + [checkmake_go_install] }}"
|
||||
|
||||
- name: Finalise checkmake source install
|
||||
ansible.builtin.set_fact:
|
||||
checkmake_install: "{{ checkmake_imethod }}={{ checkmake_go_install }}"
|
||||
|
||||
- name: Set checkmake_configured
|
||||
ansible.builtin.set_fact:
|
||||
checkmake_configured: true
|
||||
__configured: "{{ __configured | combine( { 'checkmake': checkmake_install } ) }}"
|
||||
|
||||
@@ -1,19 +1,46 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: choose
|
||||
## Description: a human-friendly and fast alternative to cut and (sometimes) awk
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: cargo
|
||||
---
|
||||
- name: Add choose
|
||||
- name: Set choose default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
choose:
|
||||
methods:
|
||||
- source
|
||||
version: 1.3.7
|
||||
# }}}
|
||||
- name: Configure choose
|
||||
when:
|
||||
- "'choose' not in __configured"
|
||||
block:
|
||||
- name: Load choose config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/choose.yml
|
||||
|
||||
- name: Append choose to pkg_cargo
|
||||
- name: Set choose install method
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- choose_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + [choose] }}"
|
||||
choose_imethod: "{{ imethod if imethod in choose.methods else choose.methods[0] }}"
|
||||
|
||||
- name: Append choose-rust to pkg_sys
|
||||
- name: Configure choose source install
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
- choose_imethod == 'source'
|
||||
block:
|
||||
- name: Configure choose cargo install
|
||||
ansible.builtin.set_fact:
|
||||
choose_cargo_install:
|
||||
name: choose
|
||||
version: "{{ choose.version }}"
|
||||
|
||||
- name: Append choose to pkg_cargo
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + [choose_cargo_install] }}"
|
||||
|
||||
- name: Finalise choose cargo install
|
||||
ansible.builtin.set_fact:
|
||||
choose_install: "{{ choose_imethod }}={{ choose_cargo_install }}"
|
||||
|
||||
- name: Finalise choose configuration
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['choose-rust'] }}"
|
||||
__configured: "{{ __configured | combine( { 'choose': choose_install } ) }}"
|
||||
|
||||
@@ -1,9 +1,44 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: clangd
|
||||
## Description: a c/c++ language server for the clang llvm compiler
|
||||
## Version: system
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Load clangd config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/clangd.yml
|
||||
|
||||
- name: Append clangd to pkg_sys
|
||||
- name: Set clangd default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + clangd.pkgs }}"
|
||||
clangd:
|
||||
methods:
|
||||
- system
|
||||
pkgname:
|
||||
RedHat: clang-devel
|
||||
Debian: clang-12
|
||||
Darwin: llvm
|
||||
Alpine: clang19
|
||||
# }}}
|
||||
- name: Configure clangd
|
||||
when:
|
||||
- "'clangd' not in __configured"
|
||||
block:
|
||||
- name: Set clangd install method
|
||||
when:
|
||||
- clangd_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
clangd_imethod: "{{ imethod if imethod in clangd.methods else clangd.methods[0] }}"
|
||||
|
||||
- name: Queue clangd system install
|
||||
when:
|
||||
- clangd_imethod == 'system'
|
||||
block:
|
||||
- name: Queue clangd system install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [clangd.pkgname[os_family]] }}"
|
||||
|
||||
- name: Finalise clangd system install
|
||||
ansible.builtin.set_fact:
|
||||
clangd_install: "{{ clangd_imethod }}={{ clangd.pkgname[os_family] }}"
|
||||
|
||||
- name: Finalise clangd configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'clangd': clangd_install } ) }}"
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set cmake-format config
|
||||
ansible.builtin.set_fact:
|
||||
cmake_format:
|
||||
pkgs: "{{ pkgconfig.cmake_format.pkgs }}"
|
||||
@@ -1,5 +1,40 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: cmake
|
||||
## Description: build system for c/c++
|
||||
## Version: system
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Append cmake to pkg_sys
|
||||
- name: Set cmake default facts # {{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['cmake'] }}"
|
||||
cmake:
|
||||
methods:
|
||||
- system
|
||||
pkgname: cmake
|
||||
# }}
|
||||
- name: Configure cmake
|
||||
when:
|
||||
- "'cmake' not in __configured"
|
||||
block:
|
||||
- name: Set cmake install method
|
||||
when:
|
||||
- cmake_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
cmake_imethod: "{{ imethod if imethod in cmake.methods else cmake.methods[0] }}"
|
||||
|
||||
- name: Configure cmake system install
|
||||
when:
|
||||
- cmake_imethod == "system"
|
||||
block:
|
||||
- name: Append cmake to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [cmake.pkgname] }}"
|
||||
|
||||
- name: Finalise cmake system install
|
||||
ansible.builtin.set_fact:
|
||||
cmake_install: "{{ cmake_imethod }}={{ cmake.pkgname }}"
|
||||
|
||||
- name: Finalize cmake configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'cmake': cmake_install } ) }}"
|
||||
|
||||
@@ -1,13 +1,68 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: cmakelang
|
||||
## Description: QA tools for cmake
|
||||
## Version: system
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Set cmakelang default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
cmakelang:
|
||||
methods:
|
||||
- source
|
||||
- system
|
||||
pkgname:
|
||||
RedHat: cmakelang
|
||||
pip: cmakelang
|
||||
pkg_deps:
|
||||
- pipx
|
||||
# }}}
|
||||
- name: Add cmakelang
|
||||
when:
|
||||
- cmakelang_configured is undefined
|
||||
- "'cmakelang' not in __configured"
|
||||
block:
|
||||
- name: Add cmakelang to pkg_pipx
|
||||
- name: Set cmakelang install method
|
||||
when:
|
||||
- cmakelang_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + ['cmakelang'] }}"
|
||||
cmakelang_imethod: "{{ imethod if imethod in cmakelang.methods else cmakelang.methods[0] }}"
|
||||
|
||||
- name: Set cmakelang_configured
|
||||
- name: Configure cmakelang system install
|
||||
when:
|
||||
- cmakelang_imethod == 'system'
|
||||
block:
|
||||
- name: Queue cmakelang for system install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [cmakelang.pkgname] }}"
|
||||
|
||||
- name: Finalise cmakelang system install
|
||||
ansible.builtin.set_fact:
|
||||
cmakelang_install: "{{ cmakelang_imethod }}={{ cmakelang.pkgname }}"
|
||||
|
||||
- name: Configure cmakelang source install
|
||||
when:
|
||||
- cmakelang_imethod == 'source'
|
||||
block:
|
||||
- name: Add cmakelang package deps
|
||||
loop: "{{ cmakelang.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: dep
|
||||
ansible.builtin.include_tasks: pkgs/{{ dep }}.yml
|
||||
|
||||
- name: Confgure cmakelang pipx install
|
||||
ansible.builtin.set_fact:
|
||||
cmakelang_pipx_install:
|
||||
name: "{{ cmakelang.pkgname['pip'] }}"
|
||||
|
||||
- name: Queue cmakelang pipx install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + [cmakelang_pipx_install] }}"
|
||||
|
||||
- name: Finalise cmakelang source install
|
||||
ansible.builtin.set_fact:
|
||||
cmakelang_install: "{{ cmakelang_imethod }}={{ cmakelang_pipx_install }}"
|
||||
|
||||
- name: Finalise cmakelang configuration
|
||||
ansible.builtin.set_fact:
|
||||
cmakelang_configured: true
|
||||
__configured: "{{ __configured | combine( { 'cmakelang': cmakelang_install } ) }}"
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load cockpit configuration
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/cockpit.yml
|
||||
|
||||
- name: Append cockpit to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + cockpit.pkgs }}"
|
||||
@@ -1,13 +1,47 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: commitlint-cli
|
||||
## Description: git commit linter to ensure standards are met
|
||||
## Version: v20.5.0
|
||||
## Methods: source
|
||||
## Helpers: npm
|
||||
---
|
||||
- name: Add commitlint-cli
|
||||
- name: Set commitlint-cli default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
commitlint_cli:
|
||||
methods:
|
||||
- source
|
||||
npm_pkg: '@commitlint/cli'
|
||||
version: v20.5.0
|
||||
# }}}
|
||||
- name: Configure commitlint-cli
|
||||
when:
|
||||
- commitlint_cli_configured is undefined
|
||||
- "'commitlint-cli' not in __configured"
|
||||
block:
|
||||
- name: Append commitlint/cli to pkg_npm
|
||||
- name: Set commitlint-cli install method
|
||||
when:
|
||||
- commitlint_cli_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@commitlint/cli'] }}"
|
||||
commitlint_cli_imethod: "{{ imethod if imethod in commitlint_cli.methods else commitlint_cli.methods[0] }}"
|
||||
|
||||
- name: Set commitlint_cli_configured
|
||||
- name: Configure commitlint-cli source install
|
||||
when:
|
||||
- commitlint_cli_imethod == 'source'
|
||||
block:
|
||||
- name: Configure commitlint-cli npm install
|
||||
ansible.builtin.set_fact:
|
||||
commitlint_cli_npm_install:
|
||||
name: "{{ commitlint_cli.npm_pkg }}"
|
||||
version: "{{ commitlint_cli.version }}"
|
||||
|
||||
- name: Append commitlint/cli to pkg_npm
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + [commitlint_cli_npm_install] }}"
|
||||
|
||||
- name: Finalise commitlint/cli npm install
|
||||
ansible.builtin.set_fact:
|
||||
commitlint_cli_install: "{{ commitlint_cli_imethod }}={{ commitlint_cli_npm_install }}"
|
||||
|
||||
- name: Finalise commitlint-cli configuration
|
||||
ansible.builtin.set_fact:
|
||||
commitlint_cli_configured: true
|
||||
__configured: "{{ __configured | combine( { 'commitlint-cli': commitlint_cli_install } ) }}"
|
||||
|
||||
@@ -1,13 +1,47 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: commitlint-config-conventional
|
||||
## Description: default configuration for conventional commitlint/cli usage
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: npm
|
||||
---
|
||||
- name: Add comitlint-config-conventional
|
||||
- name: Set commitlint-config-conventional default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
clcc:
|
||||
methods:
|
||||
- source
|
||||
npm_pkg: '@commitlint/config-conventional'
|
||||
version: v20.5.0
|
||||
# }}}
|
||||
- name: Configure comitlint-config-conventional
|
||||
when:
|
||||
- comitlint_config_conventional_configured is undefined
|
||||
- "'comitlint_config_conventional' not in __configured"
|
||||
block:
|
||||
- name: Append commitlit/config-conventional to pkg_npm
|
||||
- name: Set commitlint-config-conventional install method
|
||||
when:
|
||||
- clcc_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@commitlint/config-conventional'] }}"
|
||||
clcc_imethod: "{{ imethod if imethod in clcc.methods else clcc.methods[0] }}"
|
||||
|
||||
- name: Set comitlint_config_conventional_configured
|
||||
- name: Configure commitlint-config-conventional source install
|
||||
when:
|
||||
- clcc_imethod == 'source'
|
||||
block:
|
||||
- name: Configure commitlint-config-conventional npm install
|
||||
ansible.builtin.set_fact:
|
||||
clcc_npm_install:
|
||||
name: "{{ clcc.npm_pkg }}"
|
||||
version: "{{ clcc.version }}"
|
||||
|
||||
- name: Append commitlint-config-conventional to pkg_npm
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + [clcc_npm_install] }}"
|
||||
|
||||
- name: Finalise commitling-config-conventional npm install
|
||||
ansible.builtin.set_fact:
|
||||
clcc_install: "{{ clcc_imethod }}={{ clcc_npm_install }}"
|
||||
|
||||
- name: Finalise comitlint-config-conventional configuration
|
||||
ansible.builtin.set_fact:
|
||||
comitlint_config_conventional_configured: true
|
||||
__configured: "{{ __configured | combine( { 'commitlint-config-conventional': clcc_install } ) }}"
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add consul
|
||||
block:
|
||||
- name: Load consul config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/consul.yml
|
||||
|
||||
- name: Append consul to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + consul.pkgs }}"
|
||||
|
||||
- name: Append consul 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
|
||||
@@ -1,13 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: cssls
|
||||
## Description: css language server from vscode
|
||||
## AliasFor: vscode-langservers-extracted
|
||||
---
|
||||
- name: Add cssls
|
||||
- name: Configure cssls
|
||||
when:
|
||||
- cssls_configured is undefined
|
||||
- "'cssls' not in __configured"
|
||||
block:
|
||||
- name: Append vscode-langservers-extracted to pkg_npm
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||
- name: Pass to vscode-langservers-extracted
|
||||
ansible.builtin.include_tasks: pkgs/vscode-langservers-extracted.yml
|
||||
|
||||
- name: Set cssls_configured
|
||||
- name: Finalise cssls configuration
|
||||
ansible.builtin.set_fact:
|
||||
cssls_configured: true
|
||||
__configured: "{{ __configured | combine( { 'cssls': 'pass to vscode-langservers-extracted' } ) }}"
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add curlie
|
||||
when:
|
||||
- curlie_configured is undefined
|
||||
block:
|
||||
- name: Append curlie to pkg_go
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/rs/curlie@latest'] }}"
|
||||
|
||||
- name: Set curlie_configured
|
||||
ansible.builtin.set_fact:
|
||||
curlie_configured: true
|
||||
@@ -1,21 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add dbeaver
|
||||
when:
|
||||
- dbeaver_configured is undefined
|
||||
block:
|
||||
- name: Append dbeaver to pkg_flatpak
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + ['io.dbeaver.DBeaverCommunity'] }}"
|
||||
|
||||
- name: Append dbeaver to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['dbeaver-community'] }}"
|
||||
|
||||
- name: Set dbeaver_configured
|
||||
ansible.builtin.set_fact:
|
||||
dbeaver_configured: true
|
||||
@@ -1,5 +1,63 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: direnv
|
||||
## Description: automatically read env files when changing directories
|
||||
## Version: latest
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Append direnv to pkg_sys
|
||||
- name: Set direnv default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['direnv'] }}"
|
||||
direnv:
|
||||
methods:
|
||||
- source
|
||||
- system
|
||||
pkgname:
|
||||
RedHat: direnv
|
||||
Alpine: direnv
|
||||
Debian: direnv
|
||||
Darwin: direnv
|
||||
install_url: github.com/direnv/direnv
|
||||
pkg_deps:
|
||||
- go
|
||||
version: "{{ direnv_version | default('latest') }}"
|
||||
# }}}
|
||||
- name: Configure direnv
|
||||
when:
|
||||
- "'direnv' not in __configured"
|
||||
block:
|
||||
- name: Set direnv install method
|
||||
when:
|
||||
- direnv_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
direnv_imethod: "{{ imethod if imethod in direnv.methods else direnv.methods[0] }}"
|
||||
|
||||
- name: Append direnv to pkg_sys
|
||||
when:
|
||||
- direnv_imethod == "system"
|
||||
block:
|
||||
- name: Queue direnv system install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [direnv.pkgname[os_family]] }}"
|
||||
|
||||
- name: Finalise direnv system install
|
||||
ansible.builtin.set_fact:
|
||||
direnv_install: "{{ direnv_imethod }}={{ direnv.pkgname[os_family] }}"
|
||||
|
||||
- name: Set direnv build facts
|
||||
when:
|
||||
- direnv_imethod == 'source'
|
||||
block:
|
||||
- name: Set direnv source install facts
|
||||
ansible.builtin.set_fact:
|
||||
direnv_go_install:
|
||||
url: "{{ direnv.install_url }}@{{ direnv.version }}"
|
||||
bind: "{{ path_bin }}/direnv"
|
||||
|
||||
- name: Finalise direnv source install
|
||||
ansible.builtin.set_fact:
|
||||
direnv_install: "{{ direnv_imethod }}={{ direnv_go_install }}"
|
||||
|
||||
- name: Finalize direnv configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'direnv': direnv_install } ) }}"
|
||||
|
||||
@@ -1,13 +1,45 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: dockerls
|
||||
## Description: language server for Dockerfiles/Containerfiles
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: npm
|
||||
---
|
||||
- name: Add dockerls
|
||||
- name: Set dockerls default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
dockerls:
|
||||
methods:
|
||||
- source
|
||||
npm_pkg: dockerfile-language-server-nodejs
|
||||
# }}}
|
||||
- name: Configure dockerls
|
||||
when:
|
||||
- dockerls_configured is undefined
|
||||
- "'dockerls' not in _configured"
|
||||
block:
|
||||
- name: Append dockerfile-language-server-nodejs to pkg_npm
|
||||
- name: Set dockerls install method
|
||||
when:
|
||||
- dockerls_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['dockerfile-language-server-nodejs'] }}"
|
||||
dockerls_imethod: "{{ imethod if imethod in dockerls.methods else dockerls.methods[0] }}"
|
||||
|
||||
- name: Set dockerls_configured
|
||||
- name: Configure dockerls source install
|
||||
when:
|
||||
- dockerls_imethod == 'source'
|
||||
block:
|
||||
- name: Configure dockerls npm install
|
||||
ansible.builtin.set_fact:
|
||||
dockerls_npm_install:
|
||||
name: "{{ dockerls.npm_pkg }}"
|
||||
|
||||
- name: Queue dockerls installation
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + [dockerls_npm_install] }}"
|
||||
|
||||
- name: Finalise dockerls npm install
|
||||
ansible.builtin.set_fact:
|
||||
dockerls_install: "{{ dockerls_imethod }}={{ dockerls_npm_install }}"
|
||||
|
||||
- name: Finalise dockerls configuration
|
||||
ansible.builtin.set_fact:
|
||||
dockerls_configured: true
|
||||
__configured: "{{ __configured | combine( { 'dockerls': dockerls_install } ) }}"
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add dotenv-linter
|
||||
when:
|
||||
- dotenv_linter_configured is undefined
|
||||
block:
|
||||
- name: Append dotenv-linter to pkg_cargo
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['dotenv-linter'] }}"
|
||||
|
||||
- name: Set dotenv-linter_configured
|
||||
ansible.builtin.set_fact:
|
||||
dotenv_linter_configured: true
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add duf
|
||||
when:
|
||||
- duf_configured is undefined
|
||||
block:
|
||||
- name: Append duf to pkg_go
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/muesli/duf@latest'] }}"
|
||||
|
||||
- name: Set duf_configured
|
||||
ansible.builtin.set_fact:
|
||||
duf_configured: true
|
||||
@@ -1,19 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add dust
|
||||
block:
|
||||
- name: Append du-dust to pkg_cargo
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['du-dust'] }}"
|
||||
|
||||
- name: Append dust to pkg_sys
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['dust'] }}"
|
||||
|
||||
- name: Set dust_configured
|
||||
ansible.builtin.set_fact:
|
||||
dust_configured: true
|
||||
@@ -1,5 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append editorconfig to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['editorconfig'] }}"
|
||||
@@ -1,13 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: eslint
|
||||
## Description: Ecma script linter from vscode
|
||||
## AliasFor: vscode-langservers-extracted
|
||||
---
|
||||
- name: Add eslint
|
||||
- name: Configure eslint
|
||||
when:
|
||||
- eslint_configured is undefined
|
||||
- "'eslint' not in __configured"
|
||||
block:
|
||||
- name: Append vscode-langservers-extracted to pkg_npm
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||
- name: Pass to vscode-langservers-extracted
|
||||
ansible.builtin.include_tasks: pkgs/vscode-langservers-extracted.yml
|
||||
|
||||
- name: Set eslint_configured
|
||||
- name: Finalise eslint configuration
|
||||
ansible.builtin.set_fact:
|
||||
eslint_configured: true
|
||||
__configured: "{{ __configured | combine( { 'eslint': 'pass to vscode-langservers-extracted' } ) }}"
|
||||
|
||||
@@ -1,13 +1,45 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: eza
|
||||
## Description: modern replacement for ls
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: cargo
|
||||
---
|
||||
- name: Add eza
|
||||
- name: Set eza default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
eza:
|
||||
methods:
|
||||
- source
|
||||
- system
|
||||
# }}}
|
||||
- name: Configure eza
|
||||
when:
|
||||
- eza_configured is undefined
|
||||
- "'eza' not in __configured"
|
||||
block:
|
||||
- name: Append eza to pkg_cargo
|
||||
- name: Set eza install method
|
||||
when:
|
||||
- eza_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['eza'] }}"
|
||||
eza_imethod: "{{ imethod if imethod in eza.methods else eza.methods[0] }}"
|
||||
|
||||
- name: Set eza_configured
|
||||
- name: Configure eza source install
|
||||
when:
|
||||
- eza_imethod == "source"
|
||||
block:
|
||||
- name: Configure eza cargo facts
|
||||
ansible.builtin.set_fact:
|
||||
eza_cargo_install:
|
||||
name: eza
|
||||
|
||||
- name: Append eza to pkg_cargo
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + [eza_cargo_install] }}"
|
||||
|
||||
- name: Finalise eza source install
|
||||
ansible.builtin.set_fact:
|
||||
eza_install: "{{ eza_imethod }}={{ eza_cargo_install }}"
|
||||
|
||||
- name: Finalized eza configuration
|
||||
ansible.builtin.set_fact:
|
||||
eza_configured: true
|
||||
__configured: "{{ __configured | combine( { 'eza': eza_install} ) }}"
|
||||
|
||||
@@ -1,9 +1,45 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: fd
|
||||
## Description: a modern find replacement
|
||||
## Version: latest
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Load fd config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/fd.yml
|
||||
|
||||
- name: Append fd to pkg_sys
|
||||
- name: Set fd default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + fd.pkgs }}"
|
||||
fd:
|
||||
methods:
|
||||
- system
|
||||
pkgname:
|
||||
RedHat: fd-find
|
||||
Debian: fd
|
||||
Darwin: fd
|
||||
Alpine: fd
|
||||
FreeBSD: fd-find
|
||||
# }}}
|
||||
- name: Configure fd
|
||||
when:
|
||||
- "'fd' not in __configured"
|
||||
block:
|
||||
- name: Set fd install method
|
||||
when:
|
||||
- fd_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
fd_imethod: "{{ imethod if imethod in fd.methods else fd.methods[0] }}"
|
||||
|
||||
- name: Configur fd system install
|
||||
when:
|
||||
- fd_imethod == 'system'
|
||||
block:
|
||||
- name: Queue fd for system install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [ fd.pkgname[os_family] ] }}"
|
||||
|
||||
- name: Finalise fd system install
|
||||
ansible.builtin.set_fact:
|
||||
fd_install: "{{ fd_imethod }}={{ fd.pkgname[os_family] }}"
|
||||
|
||||
- name: Finalise fd configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'fd': fd_install } ) }}"
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load firefox config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/firefox.yml
|
||||
|
||||
- name: Append firefox to pkg_sys
|
||||
when:
|
||||
- firefox.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['firefox'] }}"
|
||||
|
||||
- name: Install firefox as flatpak
|
||||
when:
|
||||
- firefox.method == 'flatpak'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_sys + ['org.mozilla.firefox'] }}"
|
||||
|
||||
- name: Append firefox to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['firefox'] }}"
|
||||
@@ -1,5 +1,40 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: firewalld
|
||||
## Description: zone based firewall
|
||||
## Version: system
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Append firewalld to pkg_sys
|
||||
- name: Set firewalld default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['firewalld'] }}"
|
||||
firewalld:
|
||||
methods:
|
||||
- system
|
||||
pkgname: firewalld
|
||||
# }}}
|
||||
- name: Configure firewalld
|
||||
when:
|
||||
- "'firewalld' not in __configured"
|
||||
block:
|
||||
- name: Set firewalld install method
|
||||
when:
|
||||
- firewalld_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
firewalld_imethod: "{{ imethod if imethod in firewalld.methods else firewalld.methods[0] }}"
|
||||
|
||||
- name: Configure firewalld system install
|
||||
when:
|
||||
- firewalld_imethod == 'system'
|
||||
block:
|
||||
- name: Append firewalld to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [firewalld.pkgname] }}"
|
||||
|
||||
- name: Finalise firewalld system instal
|
||||
ansible.builtin.set_fact:
|
||||
firewalld_install: "{{ firewalld_imethod }}={{ firewalld.pkgname }}"
|
||||
|
||||
- name: Finalise firewalld configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'firewalld': firwalld_install } ) }}"
|
||||
|
||||
@@ -1,7 +1,40 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: flatpak
|
||||
## Description: Universal application runtime for linux
|
||||
## Version: latest
|
||||
## Methods:
|
||||
## - system
|
||||
---
|
||||
- name: Append flatpak to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- name: Set flatpak default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['flatpak'] }}"
|
||||
flatpak:
|
||||
methods:
|
||||
- system
|
||||
pkgname: flatpak
|
||||
# }}}
|
||||
- name: Configure flatpak
|
||||
when:
|
||||
- "'flatpak' not in __configured"
|
||||
block:
|
||||
- name: Set flatpak install method
|
||||
when:
|
||||
- flatpak_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
flatpak_imethod: "{{ imethod if imethod in flatpak.methods else flatpak.methods[0] }}"
|
||||
|
||||
- name: Append flatpak to pkg_sys
|
||||
when:
|
||||
- flatpak_imethod == 'system'
|
||||
block:
|
||||
- name: Configure flatpak system install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [flatpak.pkgname] }}"
|
||||
|
||||
- name: Finalise flatpak system install
|
||||
ansible.builtin.set_fact:
|
||||
flatpak_install: "{{ flatpak_imethod }}={{ flatpak.pkgname }}"
|
||||
|
||||
- name: Finalise flatpak configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'flatpak': flatpak_install } ) }}"
|
||||
|
||||
@@ -1,5 +1,40 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: fzf
|
||||
## Description: the standard for fuzzy finders
|
||||
## Version: latest
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Append fzf to pkg_sys
|
||||
- name: Set fzf default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['fzf'] }}"
|
||||
fzf:
|
||||
methods:
|
||||
- system
|
||||
pkgname: fzf
|
||||
# }}}
|
||||
- name: Configure fzf
|
||||
when:
|
||||
- "'fzf' not in __configured"
|
||||
block:
|
||||
- name: Set fzf install method
|
||||
when:
|
||||
- fzf_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
fzf_imethod: "{{ imethod if imethod in fzf.methods else fzf.methods[0] }}"
|
||||
|
||||
- name: Configure fzf system install
|
||||
when:
|
||||
- fzf_imethod == "system"
|
||||
block:
|
||||
- name: Append fzf to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['fzf'] }}"
|
||||
|
||||
- name: Finalise fzf system install
|
||||
ansible.builtin.set_fact:
|
||||
fzf_install: "{{ fzf_imethod }}={{ fzf.pkgname }}"
|
||||
|
||||
- name: Finalize fzf configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'fzf': fzf_install } ) }}"
|
||||
|
||||
@@ -1,51 +1,157 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: ghostty
|
||||
## Description: HW accelerated terminal emulator made with zig
|
||||
## Version: 1.3.1
|
||||
## Methods: [system, source, appimage]
|
||||
## Helpers: [zig, repo, appimage]
|
||||
---
|
||||
- name: Add ghostty
|
||||
- name: Set ghostty default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
ghostty:
|
||||
version: 1.3.1
|
||||
base_url: https://releases.files.ghostty.org
|
||||
# install methods per distribution
|
||||
default:
|
||||
methods:
|
||||
- source
|
||||
pkg_deps: &pkgdeps
|
||||
- zig
|
||||
build_deps:
|
||||
- gtk4
|
||||
- libadwaita
|
||||
- gtk4-layer-shell
|
||||
- pkgconf
|
||||
- gettext
|
||||
Redhat: &redhat
|
||||
methods:
|
||||
- source
|
||||
- appimage
|
||||
pkg_deps: *pkgdeps
|
||||
build_deps:
|
||||
- gtk4-devel
|
||||
- gtk4-layer-shell-devel
|
||||
- libadwaita-devel
|
||||
- gettext
|
||||
AlmaLinux: *redhat
|
||||
CentOS: *redhat
|
||||
Rocky: *redhat
|
||||
Debian: &debian
|
||||
methods:
|
||||
- source
|
||||
- appimage
|
||||
pkg_deps: *pkgdeps
|
||||
build_deps:
|
||||
- libgtk-4-dev
|
||||
- libgtk4-layer-shell-dev
|
||||
- libadwaita-1-dev
|
||||
- gettext
|
||||
- libxml2-utils
|
||||
Ubuntu: *debian
|
||||
Raspbian: *debian
|
||||
Linux Mint: *debian
|
||||
Archlinux: &arch
|
||||
methods:
|
||||
- system
|
||||
- source
|
||||
- appimage
|
||||
pkg_deps: *pkgdeps
|
||||
build_deps:
|
||||
- gtk4
|
||||
- gtk4-layer-shell
|
||||
- libadwaita
|
||||
- gettext
|
||||
pkgname: ghostty
|
||||
Majaro: *arch
|
||||
Fedora:
|
||||
methods:
|
||||
- source
|
||||
- appimage
|
||||
pkg_deps: *pkgdeps
|
||||
build_deps:
|
||||
- gtk4-devel
|
||||
- gtk4-layer-shell-devel
|
||||
- libadwaita-devel
|
||||
- gettext
|
||||
Alpine:
|
||||
methods:
|
||||
- system
|
||||
- source
|
||||
- appimage
|
||||
pkg_deps: *pkgdeps
|
||||
build_deps:
|
||||
- gtk4.0-dev
|
||||
- libadwaita-dev
|
||||
- pkgconf
|
||||
- ncurses
|
||||
- gettext
|
||||
pkgname: ghostty
|
||||
# }}}
|
||||
- name: Set ghostty facts
|
||||
ansible.builtin.set_fact:
|
||||
ghostty:
|
||||
version: "{{ ghostty_version | default(ghostty.version) }}"
|
||||
methods: "{{ ghostty[distribution].methods | default(_methods['default']) }}"
|
||||
source_url: "{{ ghostty.base_url }}/{{ ghostty.version }}/ghostty-{{ ghostty.version }}.tar.gz"
|
||||
archive: "ghostty-{{ ghostty.version }}.tar.gz"
|
||||
pkg_deps: "{{ ghostty[distribution].pkg_deps | default(omit) }}"
|
||||
build_deps: "{{ ghostty[distribution].build_deps | default(ghostty.default.build_deps) }}"
|
||||
|
||||
- name: Configure ghostty
|
||||
block:
|
||||
- name: Load ghostty config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/ghostty.yml
|
||||
|
||||
- name: Append ghostty to pkg_src
|
||||
- name: Set ghostty install method
|
||||
when:
|
||||
- ghostty.method == 'src'
|
||||
- ghostty_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ghostty.pkg }}"
|
||||
pkg_sys: "{{ pkg_sys + ghostty.build_deps }}"
|
||||
ghostty_imethod: "{{ imethod if imethod in ghostty.methods else ghostty.methods[0] }}"
|
||||
|
||||
- name: Append ghostty to pkg_appimage
|
||||
- name: Configure ghostty source install
|
||||
when:
|
||||
- ghostty.method == 'appimage'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_appimage: "{{ pkg_appimage + ghostty }}"
|
||||
|
||||
- name: Install ghostty via package manager
|
||||
when:
|
||||
- ghostty.method == 'sys'
|
||||
- ghostty_imethod == 'source'
|
||||
block:
|
||||
- name: Enable repo for ghostty
|
||||
- name: Add ghostty package dependencies
|
||||
when:
|
||||
- ansible_distribution == 'Fedora'
|
||||
changed_when: true
|
||||
ansible.builtin.get_url:
|
||||
mode: '0644'
|
||||
decompress: false
|
||||
backup: false
|
||||
url: "{{ ghostty.pkg_repo.url }}"
|
||||
dest: "{{ ghostty.pkg_repo.dest }}"
|
||||
- ghostty.pkg_deps is defined
|
||||
- ghostty.pkg_deps|length > 0
|
||||
loop: "{{ ghostty.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: dep
|
||||
ansible.builtin.include_tasks: pkgs/{{ dep }}.yml
|
||||
|
||||
- name: Append ghostty to pkg_sys
|
||||
- name: Add ghostty system dependencies
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ghostty.build_deps }}"
|
||||
|
||||
- name: Configure ghostty zig install
|
||||
ansible.builtin.set_fact:
|
||||
ghostty_source_install:
|
||||
name: ghostty
|
||||
source_path: "{{ path_archive }}/ghostty/ghostty-{{ ghostty.version }}"
|
||||
archive:
|
||||
extract_to: "{{ path_archive }}/ghostty"
|
||||
name: "{{ ghostty.archive }}"
|
||||
url: "{{ ghostty.source_url }}"
|
||||
build_flags:
|
||||
- "-Doptimize=ReleaseFast"
|
||||
|
||||
- name: Configure ghostty appimage install
|
||||
when:
|
||||
- ghostty_imethod == 'appimage'
|
||||
block:
|
||||
- name: Append ghostty to pkg_appimage
|
||||
when:
|
||||
- ansible_distriubtion
|
||||
- ghostty.method == 'appimage'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_appimage: "{{ pkg_appimage + ghostty }}"
|
||||
|
||||
- name: Configure ghostty system install
|
||||
when:
|
||||
- ghostty_imethod == 'system'
|
||||
block:
|
||||
- name: Queue ghostty to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ghostty.pkg }}"
|
||||
|
||||
- name: Append ghostty to pkg_cask
|
||||
when:
|
||||
- ghostty.method == 'cask'
|
||||
- name: Finalise ghostty configuration
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ghostty.pkg }}"
|
||||
|
||||
- name: Set ghostty_configured
|
||||
ansible.builtin.set_fact:
|
||||
ghostty_configured: true
|
||||
__configured: "{{ __configured | combine( { 'ghostty': ghostty_install } ) }}"
|
||||
|
||||
@@ -1,9 +1,38 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: git
|
||||
## Description: leading vcs software
|
||||
## Version: latest
|
||||
## Methods: [system]
|
||||
---
|
||||
- name: Load git config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/git.yml
|
||||
|
||||
- name: Append git to pkg_sys
|
||||
- name: Set git default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + git.pkgs }}"
|
||||
git:
|
||||
methods:
|
||||
- system
|
||||
# }}}
|
||||
- name: Configure git
|
||||
when:
|
||||
- "'git' not in __configured"
|
||||
block:
|
||||
- name: Set git install method
|
||||
when:
|
||||
- git_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
git_imethod: "{{ imethod if imethod in git.methods else git.methods[0] }}"
|
||||
|
||||
- name: Configure git system install
|
||||
when:
|
||||
- git_imethod == "system"
|
||||
block:
|
||||
- name: Append git to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['git'] }}"
|
||||
|
||||
- name: Finalise git system install
|
||||
ansible.builtin.set_fact:
|
||||
git_install: "{{ git_imethod }}=git"
|
||||
|
||||
- name: Finalize git configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'git': git_install } ) }}"
|
||||
|
||||
@@ -1,16 +1,72 @@
|
||||
# vim: filetype=yaml.ansible :
|
||||
#
|
||||
## Package: gitea-server
|
||||
## Description: git server with project management and a good web UI
|
||||
## Version: 1.24.5
|
||||
## Methods: appimage
|
||||
## Helpers: appimage
|
||||
---
|
||||
- name: Load gitea-server configuration
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/gitea-server.yml
|
||||
- name: Set gitea default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
gitea:
|
||||
methods:
|
||||
- appimage
|
||||
version: "{{ gitea_server_version | default('1.25.5') }}"
|
||||
baseurl: https://dl.gitea.com/gitea
|
||||
os:
|
||||
Darwin: darwin-10.12
|
||||
Linux: linux
|
||||
arch:
|
||||
x86_64: amd64
|
||||
amd64: amd64
|
||||
arm64: arm64
|
||||
aarch64: arm64
|
||||
sha256sum:
|
||||
1.25.5:
|
||||
x86_64:
|
||||
Linux: 1c86b689cd44f843299cb12b5b3eb1189d0638d5ffda04eb6b4dd0fe395422fc
|
||||
Darwin: 7f609e30c574886019157bb9424db63516a7f7b0e9b4ac9e400533ced557d0a2
|
||||
arm64:
|
||||
Linux: 371e29efea7d0fa7851aee5512869a9c8690b2d17e7486696465b9e26cd5b1d8
|
||||
Darwin: 32fc0bd019020ba9056fd350acc56ce0aa7d119065580156b2c0d1d051e251c1
|
||||
1.24.5:
|
||||
x86_64:
|
||||
Linux: 59029c97fe491b93c19705ba313f6b2397a8fe70cb2bd6fc021925f3cfb8e03d
|
||||
1.23.7:
|
||||
x86_64:
|
||||
Darwin: 71e0087d48da89ff16a5accced0c94e1be7f796cf8ea8dc6a03bc4797c3d32f7
|
||||
Linux: 3c0a7121ad1d9c525a92c68a7c040546553cd41e7464ce2fa811246b648c0a46
|
||||
arm64:
|
||||
Darwin: 2d3cbe3fb68c9e529578d404a8a49c73554c90d786305363442a33c2854eb051
|
||||
Linux: eaaf65d888e06dd5fd72c6e01575eab1863aad186133dfc199d243b3bbc56e49
|
||||
# }}}
|
||||
- name: Configure gitea-server
|
||||
when:
|
||||
- "'gitea-server' not in __configured"
|
||||
block:
|
||||
- name: Set gitea-server install method
|
||||
when:
|
||||
- gitea_server_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
gitea_server_imethod: "{{ imethod if imethod in gitea.methods else gitea.methods[0] }}"
|
||||
|
||||
- name: Download gitea-server binary
|
||||
become: true
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ gitea_server.url }}/{{ gitea_server.file }}"
|
||||
mode: '0755'
|
||||
dest: /usr/local/bin/gitea
|
||||
owner: root
|
||||
group: root
|
||||
checksum: "{{ gitea_server.sha256url }}"
|
||||
decompress: false
|
||||
- name: Configure gitea-server archive install
|
||||
when:
|
||||
- gitea_server_imethod == 'appimage'
|
||||
block:
|
||||
- name: Set gitea-server binary facts
|
||||
ansible.builtin.set_fact:
|
||||
gitea_bin_install: # use appimage helper, as it's basically the same thing
|
||||
url: "https://dl.gitea.com/gitea/{{ gitea.version }}/gitea-{{ gitea.version }}-{{ gitea.arch[system] }}-{{ gitea.arch[architecture] }}"
|
||||
name: gitea
|
||||
filename: "gitea-{{ gitea.version }}-{{ gitea.arch[system] }}-{{ gitea.arch[architecture] }}"
|
||||
checksum: "sha256:{{ gitea_server_checksum | default(gitea.sha256sum[gitea.version]) }}"
|
||||
|
||||
- name: Queue gitea-server binary install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_appimage: "{{ pkg_appimage + [gitea_bin_install] }}"
|
||||
gitea_server_install: "{{ gitea_server_imethod }}={{ gitea_bin_install }}"
|
||||
|
||||
- name: Finalise gitea-server configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( {'gitea-server': gitea_server_install } ) }}"
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add glow
|
||||
when:
|
||||
- glow_configured is undefined
|
||||
block:
|
||||
- name: Append glow to pkg_go
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/charmbracelet/glow@latest'] }}"
|
||||
|
||||
- name: Set glow_configured
|
||||
ansible.builtin.set_fact:
|
||||
glow_configured: true
|
||||
@@ -1,16 +1,122 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: go
|
||||
## Description: go compiler and module manager
|
||||
## Version: 1.26.1
|
||||
---
|
||||
- name: Load go config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/go.yml
|
||||
|
||||
- name: Append go to pkg_archive
|
||||
- name: Set go default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
go:
|
||||
methods:
|
||||
- archive
|
||||
- system
|
||||
pkgname:
|
||||
RedHat: go
|
||||
Debian: go
|
||||
Darwin: go
|
||||
FreeBSD:
|
||||
default: go
|
||||
1.26: go126
|
||||
1.25: go125
|
||||
1.24: go124
|
||||
1.23: go123
|
||||
1.22: go122
|
||||
archive:
|
||||
version: "{{ go_archive_version | default('1.26.1') }}"
|
||||
archmap:
|
||||
arm64: arm64
|
||||
aarch64: arm64
|
||||
x86_64: amd64
|
||||
url_base: https://go.dev/dl
|
||||
checksums:
|
||||
1.26.1:
|
||||
Darwin:
|
||||
amd64: sha256:65773dab2f8cc4cd23d93ba6d0a805de150ca0b78378879292be0b903b8cdd08
|
||||
arm64: sha256:353df43a7811ce284c8938b5f3c7df40b7bfb6f56cb165b150bc40b5e2dd541f
|
||||
Linux:
|
||||
amd64: sha256:031f088e5d955bab8657ede27ad4e3bc5b7c1ba281f05f245bcc304f327c987a
|
||||
arm64: sha256:a290581cfe4fe28ddd737dde3095f3dbeb7f2e4065cab4eae44dfc53b760c2f7
|
||||
FreeBSD:
|
||||
amd64: sha256:d89034a0b54fdc234815fecfb76d7d06a7d180d7a6124aa47715a4cacc9fe999
|
||||
arm64: sha256:d62b358dbf7bcfc33402e7e221d848e7fd8d7ac902b33920f2c23c8a32ba76db
|
||||
1.25.6:
|
||||
Darwin:
|
||||
amd64: sha256:e2b5b237f5c262931b8e280ac4b8363f156e19bfad5270c099998932819670b7
|
||||
arm64: sha256:984521ae978a5377c7d782fd2dd953291840d7d3d0bd95781a1f32f16d94a006
|
||||
Linux:
|
||||
amd64: sha256:f022b6aad78e362bcba9b0b94d09ad58c5a70c6ba3b7582905fababf5fe0181a
|
||||
arm64: sha256:738ef87d79c34272424ccdf83302b7b0300b8b096ed443896089306117943dd5
|
||||
FreeBSD:
|
||||
amd64: sha256:61e1d50e332359474ff6dcf4bc0bd34ba2d2cf4ef649593a5faa527f0ab84e2b
|
||||
arm64: sha256:648484146702dd58db0e2c3d15bda3560340d149ed574936e63285a823116b77
|
||||
# }}}
|
||||
- name: Configure go for install
|
||||
when:
|
||||
- go.method == 'archive'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['go'] }}"
|
||||
- "'go' not in __configured"
|
||||
block:
|
||||
- name: Configure go install method
|
||||
when:
|
||||
- go_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
go_imethod: "{{ imethod if imethod in go.methods else go.methods[0] }}"
|
||||
|
||||
- name: Append to pkg_sys
|
||||
- go.method != 'archive'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['go'] }}"
|
||||
- name: Configure go system installation
|
||||
when:
|
||||
- go_imethod == 'system'
|
||||
block:
|
||||
- name: Set go pkgname
|
||||
ansible.builtin.set_fact:
|
||||
go_pkgname: "{{ go.pkgname[os_family] }}"
|
||||
|
||||
- name: Set go pkgname for FreeBSD
|
||||
when:
|
||||
- ansible_os_family == 'FreeBSD'
|
||||
ansible.builtin.set_fact:
|
||||
go_pkgname: "{{ go_pkgname[go_bsd_version] | default(go_pkgname['default']) }}"
|
||||
|
||||
- name: Go system package install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [go_pkgname] }}"
|
||||
|
||||
- name: Configure go archive installation
|
||||
when:
|
||||
- go_imethod == 'archive'
|
||||
block:
|
||||
- name: Configure go
|
||||
ansible.builtin.set_fact:
|
||||
go_system: "{{ ansible_system | lower }}"
|
||||
go_arch: "{{ go.archive.archmap[ansible_architecture] }}"
|
||||
|
||||
- name: Set archive name
|
||||
ansible.builtin.set_fact:
|
||||
go_archive_file: "go{{ go.archive.version }}.{{ go_system }}-{{ go_arch }}.tar.gz"
|
||||
|
||||
- name: Set go archive url and path
|
||||
ansible.builtin.set_fact:
|
||||
go_archive_url: "{{ go.archive.url_base }}/{{ go_archive_file }}"
|
||||
go_extract_path: "{{ path_archive }}/go{{ go.archive.version }}"
|
||||
|
||||
- name: Finalize go archive install
|
||||
ansible.builtin.set_fact:
|
||||
go_archive_install:
|
||||
extract_to: "{{ go_extract_path }}"
|
||||
url: "{{ go_archive_url }}"
|
||||
name: "{{ go_archive_file }}"
|
||||
checksum: "{{ go.archive.checksums[go.archive.version][ansible_system][go_arch] }}"
|
||||
links:
|
||||
- from: "{{ go_extract_path }}/go"
|
||||
to: "{{ path_go }}"
|
||||
force: true
|
||||
- from: "{{ go_extract_path }}/go/bin/go"
|
||||
to: "{{ path_bin }}/go"
|
||||
force: true
|
||||
__add_to_path: "{{ __add_to_path + [path_go ~ '/bin'] }}"
|
||||
__var_to_env: "{{ __var_to_env | combine( { 'GOROOT': path_go } ) }}"
|
||||
|
||||
- name: Add go archive extract install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + [go_archive_install] }}"
|
||||
|
||||
- name: Finalise go configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'go': go_imethod } ) }}"
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add goroot to /etc/profile.d
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['go_profile_path'] }}"
|
||||
@@ -1,21 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add godot
|
||||
when:
|
||||
- godot_configured is undefined
|
||||
block:
|
||||
- name: Append godot to pkg_flatpak
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + ['org.godotengine.Godot'] }}"
|
||||
|
||||
- name: Append godot to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['godot'] }}"
|
||||
|
||||
- name: Set godot_configured
|
||||
ansible.builtin.set_fact:
|
||||
godot_configured: true
|
||||
@@ -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 } ) }}"
|
||||
|
||||
@@ -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 } ) }}"
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load greetd config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/greetd.yml
|
||||
|
||||
- name: Append greetd to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + greetd.pkgs }}"
|
||||
@@ -1,21 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add heroic
|
||||
when:
|
||||
- heroic_configured is undefined
|
||||
block:
|
||||
- name: Append heroic to pkg_flatpak
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + ['com.heroicgameslauncher.hgl'] }}"
|
||||
|
||||
- name: Append heroic to pkg_cask
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['heroic'] }}"
|
||||
|
||||
- name: Set heroic_configured
|
||||
ansible.builtin.set_fact:
|
||||
heroic_configured: true
|
||||
@@ -1,13 +1,4 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add htmlls
|
||||
when:
|
||||
- htmlls_configured is undefined
|
||||
block:
|
||||
- name: Append vscode-langservers-extracted to pkg_npm
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||
|
||||
- name: Set htmlls_configured
|
||||
ansible.builtin.set_fact:
|
||||
htmlls_configured: true
|
||||
- name: Pass to vscode-langservers-extracted
|
||||
ansible.builtin.include_tasks: pkgs/vscode-langservers-extracted.yml
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -1,5 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append hugo to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['hugo'] }}"
|
||||
@@ -1,5 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append hyperfine to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['hyperfine'] }}"
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hyprcursor config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprcursor.yml
|
||||
|
||||
- name: Append hyprcursor build deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprcursor.build_deps }}"
|
||||
|
||||
- name: Append hyprcursor to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprcursor'] }}"
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hyprgraphics config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprgraphics.yml
|
||||
|
||||
- name: Append hyprgraphics build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprgraphics.build_deps }}"
|
||||
|
||||
- name: Append hyprcursor to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprgraphics'] }}"
|
||||
@@ -1,22 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hypridle config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hypridle.yml
|
||||
|
||||
- name: Append hypridle pkg_deps
|
||||
loop: "{{ hypridle.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hypridle_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hypridle_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hypridle_pkg_dep }}.yml"
|
||||
|
||||
- name: Append hypridle build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hypridle.build_deps }}"
|
||||
|
||||
- name: Append hypridle to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hypridle'] }}"
|
||||
@@ -1,22 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hyprland config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprland.yml
|
||||
|
||||
- name: Append hyprland pkg_deps
|
||||
loop: "{{ hyprland.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprland_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprland_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprland_pkg_dep }}.yml"
|
||||
|
||||
- name: Append hyprland build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprland.build_deps }}"
|
||||
|
||||
- name: Append hyprland to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprland'] }}"
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hyprland-protocols config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprland_protocols.yml
|
||||
|
||||
- name: Append hyprland-protocols build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprland_protocols.build_deps }}"
|
||||
|
||||
- name: Append hyprland-protocols to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprland_protocols'] }}"
|
||||
@@ -1,22 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hyprland_qt_support config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprland_qt_support.yml
|
||||
|
||||
- name: Append hyprland_qt_support pkg_deps
|
||||
loop: "{{ hyprland_qt_support.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprland_qt_support_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprland_qt_support_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprland_qt_support_pkg_dep }}.yml"
|
||||
|
||||
- name: Append hyprland_qt_support build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprland_qt_support.build_deps }}"
|
||||
|
||||
- name: Append hyprland_qt_support to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprland_qt_support'] }}"
|
||||
@@ -1,22 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hyprland_qtutils config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprland_qtutils.yml
|
||||
|
||||
- name: Append hyprland_qtutils pkg_deps
|
||||
loop: "{{ hyprland_qtutils.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprland_qtutils_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprland_qtutils_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprland_qtutils_pkg_dep }}.yml"
|
||||
|
||||
- name: Append hyprland_qtutils build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprland_qtutils.build_deps }}"
|
||||
|
||||
- name: Append hyprland_qtutils to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprland_qtutils'] }}"
|
||||
@@ -1,22 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hyprlang config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprlang.yml
|
||||
|
||||
- name: Append hyprland pkg_deps
|
||||
loop: "{{ hyprlang.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprlang_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprlang_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprlang_pkg_dep }}.yml"
|
||||
|
||||
- name: Append hyprlang build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprlang.build_deps }}"
|
||||
|
||||
- name: Append hyprlang to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprlang'] }}"
|
||||
@@ -1,22 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hyprlock config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprlock.yml
|
||||
|
||||
- name: Append hyprlock pkg_deps
|
||||
loop: "{{ hyprlock.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprlock_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprlock_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprlock_pkg_dep }}.yml"
|
||||
|
||||
- name: Append hyprlock build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprlock.build_deps }}"
|
||||
|
||||
- name: Append hyprlock to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprlock'] }}"
|
||||
@@ -1,22 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hyprpaper config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprpaper.yml
|
||||
|
||||
- name: Append hyprpaper pkg_deps
|
||||
loop: "{{ hyprpaper.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprpaper_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprpaper_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprpaper_pkg_dep }}.yml"
|
||||
|
||||
- name: Append hyprpaper build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprpaper.build_deps }}"
|
||||
|
||||
- name: Append hyprpaper to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprpaper'] }}"
|
||||
@@ -1,22 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hyprpicker config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprpicker.yml
|
||||
|
||||
- name: Append hyprpicker pkg_deps
|
||||
loop: "{{ hyprpicker.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprpicker_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprpicker_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprpicker_pkg_dep }}.yml"
|
||||
|
||||
- name: Append hyprpicker build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprpicker.build_deps }}"
|
||||
|
||||
- name: Append hyprpicker to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprpicker'] }}"
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hyprpolkitagent config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprpolkitagent.yml
|
||||
|
||||
- name: Append hyprpolkitagent build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprpolkitagent.build_deps }}"
|
||||
|
||||
- name: Append hyprpolkitagent to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprpolkitagent'] }}"
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hyprutils config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprutils.yml
|
||||
|
||||
- name: Append hyprutils build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprutils.build_deps }}"
|
||||
|
||||
- name: Append hyprutils to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprutils'] }}"
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hyprwayland-scanner config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprwayland_scanner.yml
|
||||
|
||||
- name: Append hyprwayland-scanner build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprwayland_scanner.build_deps }}"
|
||||
|
||||
- name: Append hyprwayland-scanner to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['hyprwayland_scanner'] }}"
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -1,5 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append jq to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['jq'] }}"
|
||||
@@ -1,13 +1,4 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add jsonls
|
||||
when:
|
||||
- jsonls_configured is undefined
|
||||
block:
|
||||
- name: Append vscode-langservers-extracted to pkg_npm
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||
|
||||
- name: Set jsonls_configured
|
||||
ansible.builtin.set_fact:
|
||||
jsonls_configured: true
|
||||
- name: Pass to vscode-langservers-extracted
|
||||
ansible.builtin.include_tasks: pkgs/vscode-langservers-extracted.yml
|
||||
|
||||
@@ -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 }}"
|
||||
@@ -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 } ) }}"
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load libreoffice config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/libreoffice.yml
|
||||
|
||||
- name: Append libreoffice to pkg_flatpak
|
||||
when:
|
||||
- libreoffice.method == 'flatpak'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + [libreoffice.flatpak] }}"
|
||||
|
||||
- name: Append libreoffice to pkg_sys
|
||||
when:
|
||||
- libreoffice.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
sys_pkg: "{{ sys_pkg + libreoffice.pkgs }}"
|
||||
|
||||
- name: Append libreoffice to caskpkgs
|
||||
when:
|
||||
- libreoffice.method == 'cask'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + libreoffice.pkgs }}"
|
||||
@@ -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'] }}"
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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'] }}"
|
||||
@@ -1,29 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add neovide
|
||||
block:
|
||||
- name: Load neovide config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/neovide.yml
|
||||
|
||||
- name: Linux based neovide install
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
block:
|
||||
- name: Append neovide build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + neovide.build_deps }}"
|
||||
|
||||
- name: Append neovide to pkg_cargo
|
||||
ansible.builtin.set_fact:
|
||||
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
|
||||
@@ -1,24 +1,106 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: neovim
|
||||
## Description: fork of vim focusing on modern development
|
||||
## Version: master
|
||||
## Methods: [source, system, appimage, archive]
|
||||
## Helpers: [make, archive, appimage]
|
||||
---
|
||||
- name: Load neovim config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/neovim.yml
|
||||
|
||||
- name: Append neovim to pkg_appimage
|
||||
when:
|
||||
- neovim.method == 'appimage'
|
||||
- name: Set neovim default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_appimage: "{{ pkg_appimage + ['neovim'] }}"
|
||||
|
||||
- name: Append neovim to pkg_sys
|
||||
neovim:
|
||||
methods:
|
||||
- source
|
||||
- system
|
||||
- appimage
|
||||
- archive
|
||||
git_repo: https://github.com/neovim/neovim
|
||||
appimage:
|
||||
base_url: https://github.com/neovim/neovim/releases/download
|
||||
pkgname:
|
||||
RedHat: neovim
|
||||
Debian: neovim
|
||||
Darwin: neovim
|
||||
FreeBSD: neovim
|
||||
build_files:
|
||||
- to: lib64/nvim
|
||||
- to: bin/nvim
|
||||
- to: share/nvim
|
||||
- to: share/applications/nvim.desktop
|
||||
- to: share/icons/hicolor/128x128/apps/nvim.png
|
||||
- to: share/man/man1/nvim.1
|
||||
build_pkgdeps:
|
||||
- cmake
|
||||
- git
|
||||
build_deps:
|
||||
RedHat:
|
||||
- cmake
|
||||
- curl
|
||||
- gcc
|
||||
- gettext
|
||||
- glibc-gconv-extra
|
||||
- make
|
||||
- ninja-build
|
||||
Debian:
|
||||
- build-essential
|
||||
- cmake
|
||||
- curl
|
||||
- gettext
|
||||
- ninja-build
|
||||
Darwin:
|
||||
- cmake
|
||||
- curl
|
||||
- gettext
|
||||
- ninja
|
||||
Alpine:
|
||||
- build-base
|
||||
- cmake
|
||||
- coreutils
|
||||
- curl
|
||||
- gettext-dev
|
||||
# }}}
|
||||
- name: Configure neovim
|
||||
when:
|
||||
- neovim.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['neovim'] }}"
|
||||
- "'neovim' not in __configured"
|
||||
block:
|
||||
- name: Set neovim install method
|
||||
when:
|
||||
- neovim_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
neovim_imethod: "{{ imethod if imethod in neovim.methods else neovim.methods[0] }}"
|
||||
|
||||
- name: Append neovim to pkg_src
|
||||
when:
|
||||
- neovim.method == 'src'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + neovim.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['neovim'] }}"
|
||||
- name: Configure neovim source install
|
||||
when:
|
||||
- neovim_imethod == "source"
|
||||
block:
|
||||
- name: Queue pkg build deps
|
||||
when:
|
||||
- neovim.build_pkgdeps is defined
|
||||
loop: "{{ neovim.build_pkgdeps }}"
|
||||
loop_control:
|
||||
loop_var: dep
|
||||
ansible.builtin.include_tasks: "pkgs/{{ dep }}.yml"
|
||||
|
||||
- name: Set helper facts
|
||||
ansible.builtin.set_fact:
|
||||
neovim_src_install:
|
||||
path: "{{ d_cache.path }}/neovim"
|
||||
repo: "{{ neovim.git_repo }}"
|
||||
version: "{{ neovim_version }}"
|
||||
targets:
|
||||
build:
|
||||
name: ""
|
||||
do_become: false
|
||||
params:
|
||||
CMAKE_BUILD_TYPE: Release
|
||||
CMAKE_EXTRA_FLAGS: "-DCMAKE_INSTALL_PREFIX={{ install_prefix }}"
|
||||
install:
|
||||
name: install
|
||||
do_become: true
|
||||
- name: Append neovim to source install list
|
||||
ansible.builtin.set_fact:
|
||||
pkg_make: "{{ pkg_make + [neovim_src_install] }}"
|
||||
|
||||
- name: Finalized neovim configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'neovim': neovim_imethod } ) }}"
|
||||
|
||||
@@ -1,28 +1,235 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: nerdfonts
|
||||
## Description: Monospace fonts that are attractive for developers
|
||||
## Version: latest
|
||||
## Methods: archive
|
||||
## Helpers: nerdfont_config, archive
|
||||
---
|
||||
- name: Add nerdfonts
|
||||
- name: Set default nerdfonts facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
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":
|
||||
brew: font-3270-nerd-font
|
||||
Agave:
|
||||
brew: font-agave-nerd-font
|
||||
AnonymicePro:
|
||||
archive: AnonymousPro
|
||||
brew: font-anonymice-nerd-font
|
||||
Arimo:
|
||||
brew: font-arimo-nerd-font
|
||||
AurulentSansM:
|
||||
archive: AurulentSansMono
|
||||
brew: font-aurulent-sans-mono-nerd-font
|
||||
BigBlueTerm:
|
||||
archive: BigBlueTerminal
|
||||
brew: font-bigblue-terminal-nerd-font
|
||||
BitstromWera:
|
||||
archive: BitstreamVeraSansMono
|
||||
brew: font-bitstream-vera-sans-mono-nerd-font
|
||||
BlexMono:
|
||||
archive: IBMPlexMono
|
||||
brew: font-blex-mono-nerd-font
|
||||
CaskaydiaCove:
|
||||
archive: CascadiaCode
|
||||
brew: font-caskaydia-cove-nerd-font
|
||||
CaskaydiaMono:
|
||||
archive: CascadiaMono
|
||||
brew: font-caskaydia-mono-nerd-font
|
||||
CodeNewRoman:
|
||||
brew: font-code-new-roman-nerd-font
|
||||
ComicShannsMono:
|
||||
brew: font-comic-shanns-mono-nerd-font
|
||||
CommitMono:
|
||||
brew: font-commit-mono-nerd-font
|
||||
Cousine:
|
||||
brew: font-cousine-nerd-font
|
||||
D2CodingLigature:
|
||||
archive: D2Coding
|
||||
brew: font-d2coding-nerd-font
|
||||
DaddyTimeMono:
|
||||
brew: font-daddy-time-mono-nerd-font
|
||||
DejaVuSansM:
|
||||
archive: DejaVuSansMono
|
||||
brew: font-dejavu-sans-mono-nerd-font
|
||||
DepartureMono:
|
||||
brew: font-departure-mono-nerd-font
|
||||
DroidSansM:
|
||||
archive: DroidSansMono
|
||||
brew: font-droid-sans-mono-nerd-font
|
||||
EnvyCodeR:
|
||||
brew: font-envy-code-r-nerd-font
|
||||
FantasqueSansM:
|
||||
archive: FantasqueSansMono
|
||||
brew: font-fantasque-sans-mono-nerd-font
|
||||
FiraCode:
|
||||
brew: font-fira-code-nerd-font
|
||||
FiraMono:
|
||||
brew: font-fira-mono-nerd-font
|
||||
GeistMono:
|
||||
brew: font-geist-mono-nerd-font
|
||||
GoMono:
|
||||
archive: Go-Mono
|
||||
brew: font-go-mono-nerd-font
|
||||
GohuFont:
|
||||
archive: Gohu
|
||||
brew: font-gohufont-nerd-font
|
||||
Hack:
|
||||
brew: font-hack-nerd-font
|
||||
Hasklug:
|
||||
archive: Hasklig
|
||||
brew: font-hasklug-nerd-font
|
||||
HeavyData:
|
||||
brew: font-heavy-data-nerd-font
|
||||
Hurmit:
|
||||
archive: Hermit
|
||||
brew: font-hurmit-nerd-font
|
||||
iMWriting:
|
||||
archive: IA-Writer
|
||||
brew: font-im-writing-nerd-font
|
||||
Inconsolata:
|
||||
brew: font-inconsolata-nerd-font
|
||||
InconsolataGo:
|
||||
brew: font-inconsolata-go-nerd-font
|
||||
InconsolataLGC:
|
||||
brew: font-inconsolata-lgc-nerd-font
|
||||
IntoneMono:
|
||||
archive: IntelOneMono
|
||||
brew: font-intone-mono-nerd-font
|
||||
Iosevka:
|
||||
brew: font-iosevka-nerd-font
|
||||
IosevkaTerm:
|
||||
brew: font-iosevka-term-nerd-font
|
||||
IosevkaTermSlab:
|
||||
brew: font-iosevka-term-slab-nerd-font
|
||||
JetBrainsMono:
|
||||
brew: font-jetbrains-mono-nerd-font
|
||||
Lekton:
|
||||
brew: font-lekton-nerd-font
|
||||
LiterationMono:
|
||||
archive: LiberationMono
|
||||
brew: font-liberation-nerd-font
|
||||
Lilex:
|
||||
brew: font-lilex-nerd-font
|
||||
MartianMono:
|
||||
brew: font-martian-mono-nerd-font
|
||||
MesloLG:
|
||||
archive: Meslo
|
||||
brew: font-meslo-lg-nerd-font
|
||||
Monaspice:
|
||||
archive: Monaspace
|
||||
brew: font-monaspace-nerd-font
|
||||
Monofur:
|
||||
brew: font-monofur-nerd-font
|
||||
Monoid:
|
||||
brew: font-monoid-nerd-font
|
||||
Mononoki:
|
||||
brew: font-mononoki-nerd-font
|
||||
M+:
|
||||
archive: MPlus
|
||||
brew: font-m+-nerd-font
|
||||
Noto:
|
||||
brew: font-noto-nerd-font
|
||||
OpenDyslexic:
|
||||
brew: font-open-dyslexic-nerd-font
|
||||
Overpass:
|
||||
brew: font-overpass-nerd-font
|
||||
ProFont:
|
||||
brew: font-profont-nerd-font
|
||||
ProggyClean:
|
||||
brew: font-proggy-clean-tt-nerd-font
|
||||
RecMono:
|
||||
archive: Recursive
|
||||
brew: font-recursive-mono-nerd-font
|
||||
RobotoMono:
|
||||
brew: font-roboto-mono-nerd-font
|
||||
ShureTechMono:
|
||||
archive: ShareTechMono
|
||||
brew: font-shure-tech-mono-nerd-font
|
||||
SauceCodePro:
|
||||
archive: SourceCodePro
|
||||
brew: font-sauce-code-pro-nerd-font
|
||||
SpaceMono:
|
||||
brew: font-space-mono-nerd-font
|
||||
Symbols:
|
||||
archive: NerdFontsSymbolsOnly
|
||||
brew: font-symbols-only-nerd-font
|
||||
Terminess:
|
||||
archive: Terminus
|
||||
brew: font-terminess-ttf-nerd-font
|
||||
Tinos:
|
||||
brew: font-tinos-nerd-font
|
||||
Ubuntu:
|
||||
brew: font-ubuntu-nerd-font
|
||||
UbuntuMono:
|
||||
brew: font-ubuntu-mono-nerd-font
|
||||
UbuntuSans:
|
||||
brew: font-ubuntu-sans-nerd-font
|
||||
VictorMono:
|
||||
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_configured is undefined
|
||||
- "'nerdfonts' not in __configured"
|
||||
block:
|
||||
- name: Load nerdfonts config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/nerdfonts.yml
|
||||
|
||||
- name: Append nerdfonts to pkg_archive
|
||||
- name: Set nerdfonts install method
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- nerdfonts_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['nerdfonts'] }}"
|
||||
nerdfonts_imethod: "{{ imethod if imethod in nerdfonts.methods[system] else nerdfonts.methods[system][0] }}"
|
||||
|
||||
- name: Append nerdfonts to pkg_cask
|
||||
- name: Configure nerdfonts archive install
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
loop: "{{ nerdfonts.fonts }}"
|
||||
loop_control:
|
||||
loop_var: font
|
||||
- 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: 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:
|
||||
- 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 + [pkgconfig.nerdfonts.fonts[font].brew] }}"
|
||||
nerdfonts_install: "{{ nerdfonts_imethod }}={{ nerdfont.install_list }}"
|
||||
|
||||
- name: Set nerdfonts_configured
|
||||
ansible.builtin.set_fact:
|
||||
nerdfonts_configured: true
|
||||
__configured: "{{ __configured | combine( { 'nerdfonts': nerdfonts_install } ) }}"
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add nextcloud_client
|
||||
block:
|
||||
- name: Load nextcloud-client config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/nextcloud.yml
|
||||
|
||||
- name: Append nextcloud-client to pkg_Flatpak
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- nextcloud.method == 'flatpak'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + [nextcloud] }}"
|
||||
|
||||
- name: Append nextcloud-client to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- nextcloud.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['nextcloud'] }}"
|
||||
|
||||
- name: Append nextcloud-client 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
|
||||
@@ -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 }}"
|
||||
@@ -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 }}"
|
||||
@@ -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
|
||||
@@ -1,9 +1,40 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: nodejs
|
||||
## Description: v8 javascript engine
|
||||
## Version: system
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Load nodejs config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/nodejs.yml
|
||||
|
||||
- name: Append nodejs to pkg_sys
|
||||
- name: Set nodejs default facts
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + nodejs.pkgs }}"
|
||||
nodejs:
|
||||
methods:
|
||||
- system
|
||||
pkgname:
|
||||
RedHat:
|
||||
- nodejs
|
||||
FreeBSD:
|
||||
- node
|
||||
- npm
|
||||
- name: Configure nodejs
|
||||
when:
|
||||
- "'nodejs' not in __configured"
|
||||
block:
|
||||
- name: Set nodejs install method
|
||||
when:
|
||||
- nodejs_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
nodejs_imethod: "{{ imethod if imethod in nodejs.methods else nodejs.methods[0] }}"
|
||||
|
||||
- name: Configure nodejs system install
|
||||
when:
|
||||
- nodejs_imethod == "system"
|
||||
block:
|
||||
- name: Append nodejs to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + nodejs.pkgname[os_family] }}"
|
||||
|
||||
- name: Finalize nodejs configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'nodejs': nodejs_imethod } ) }}"
|
||||
|
||||
@@ -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
|
||||
6
tasks/pkgs/npm.yml
Normal file
6
tasks/pkgs/npm.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Redirect to nodejs
|
||||
---
|
||||
- name: Include nodejs to satisfy npm
|
||||
ansible.builtin.include_tasks: pkgs/nodejs.yml
|
||||
@@ -1,5 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add nwg-drawer to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['nwg-drawer'] }}"
|
||||
@@ -1,5 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add nwg-panel to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['nwg-panel'] }}"
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load nwg-hello config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/nwg_hello.yml
|
||||
|
||||
- name: Append nwg-hello build_deps to sys_pkg
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + nwg_hello.build_deps }}"
|
||||
@@ -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'] }}"
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user