finished list, now to test them all
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: choose
|
||||
## Description:
|
||||
## Description: a human-friendly and fast alternative to cut and (sometimes) awk
|
||||
## Version: latest
|
||||
## Methods: source
|
||||
## Helpers: cargo
|
||||
|
||||
@@ -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,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,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,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,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,8 +1,23 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: nerdfonts
|
||||
## Description: Monospace fonts that are attractive for developers
|
||||
## Version: latest
|
||||
## Methods: archive
|
||||
## Helpers: nerdfont_config, archive
|
||||
---
|
||||
- name: Set default nerdfonts facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
__nerdfonts:
|
||||
nerdfonts:
|
||||
methods:
|
||||
Linux:
|
||||
- archive
|
||||
Darwin:
|
||||
- system
|
||||
install_path: share/fonts
|
||||
base_url: https://github.com/ryanoasis/nerd-fonts/releases/latest/download
|
||||
install_list: "{{ nerdfonts_install_list | default(['JetBrainsMono', 'FiraCode', 'Symbols']) }}"
|
||||
__nerdfonts: # {{{
|
||||
0xProto:
|
||||
brew: font-0xproto-nerd-font
|
||||
"3270":
|
||||
@@ -165,40 +180,56 @@
|
||||
brew: font-victor-mono-nerd-font
|
||||
ZedMono:
|
||||
brew: font-zed-mono-nerd-font
|
||||
# }}}
|
||||
base_url: https://github.com/ryanoasis/nerd-fonts/releases/latest/download
|
||||
# }}}
|
||||
- name: Configure nerdfonts
|
||||
when:
|
||||
- "'nerdfonts' not in __configured"
|
||||
block:
|
||||
- name: Create nerdfonts directories
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
mode: '0755'
|
||||
path: "{{ install_prefix }}/{{ nerdfonts_install_path }}"
|
||||
owner: "{{ install_prefix_owner }}"
|
||||
group: "{{ install_prefix_group }}"
|
||||
- name: Set nerdfonts install method
|
||||
when:
|
||||
- nerdfonts_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
nerdfonts_imethod: "{{ imethod if imethod in nerdfonts.methods[system] else nerdfonts.methods[system][0] }}"
|
||||
|
||||
- name: Configure nerdfonts archive install
|
||||
when:
|
||||
- nerdfonts_install_list|length > 0
|
||||
- ansible_facts["system"] != 'Darwin'
|
||||
loop: "{{ nerdfonts_install_list }}"
|
||||
loop_control:
|
||||
loop_var: nf
|
||||
ansible.builtin.include_tasks: helpers/nerdfont_config.yml
|
||||
- nerdfonts_imethod == 'archive'
|
||||
block:
|
||||
- name: Create nerdfonts directories
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
mode: '0755'
|
||||
path: "{{ install_prefix }}/{{ nerdfonts.install_path }}"
|
||||
owner: "{{ install_prefix_owner }}"
|
||||
group: "{{ install_prefix_group }}"
|
||||
|
||||
- name: Append nerdfonts to pkg_cask
|
||||
- name: Configure nerdfonts archive install
|
||||
when:
|
||||
- nerdfonts_install_list|length > 0
|
||||
loop: "{{ nerdfonts.install_list }}"
|
||||
loop_control:
|
||||
loop_var: nf
|
||||
ansible.builtin.include_tasks: helpers/nerdfont_config.yml
|
||||
|
||||
- name: Configure nerdfonts system install
|
||||
when:
|
||||
- ansible_facts["system"] == 'Darwin'
|
||||
loop: "{{ nerdfonts_install_list }}"
|
||||
loop_control:
|
||||
loop_var: nf
|
||||
- nerdfonts_imethod == 'system'
|
||||
block:
|
||||
- name: Append nerdfonts to pkg_cask
|
||||
loop: "{{ nerdfonts.install_list }}"
|
||||
loop_control:
|
||||
loop_var: nf
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + [__nerdfonts[nf].brew] }}"
|
||||
|
||||
- name: Finalise nerdfonts archive install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + [__nerdfonts[nf].brew] }}"
|
||||
nerdfonts_install: "{{ nerdfonts_imethod }}={{ nerdfont.install_list }}"
|
||||
|
||||
- name: Set nerdfonts_configured
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'nerdfonts': true } ) }}"
|
||||
__configured: "{{ __configured | combine( { 'nerdfonts': nerdfonts_install } ) }}"
|
||||
|
||||
@@ -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,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
|
||||
@@ -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'] }}"
|
||||
@@ -1,5 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append pandoc to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['pandoc'] }}"
|
||||
@@ -1,25 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add pgadmin
|
||||
when:
|
||||
- pgadmin_configured is undefined
|
||||
block:
|
||||
- name: Load pgadmin config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/pgadmin.yml
|
||||
|
||||
- name: Append pgadmin to pkg_flatpak
|
||||
when:
|
||||
- pgadmin.method == 'flatpak'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + [pgadmin.flatpak] }}"
|
||||
|
||||
- name: Append pgadmin to pkg_cask
|
||||
when:
|
||||
- pgadmin.method == 'cask'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + pgadmin.pkgs }}"
|
||||
|
||||
- name: Set pgadmin_configured
|
||||
ansible.builtin.set_fact:
|
||||
pgadmin_configured: true
|
||||
@@ -1,33 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set pipx default facts
|
||||
ansible.builtin.set_fact:
|
||||
pipx:
|
||||
methods:
|
||||
- system
|
||||
|
||||
- name: Configure pipx
|
||||
when:
|
||||
- "'pipx' not in __configured"
|
||||
block:
|
||||
- name: Set pipx install method
|
||||
when:
|
||||
- pipx_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pipx_imethod: "{{ imethod if imethod in pipx.methods else pipx.methods[0] }}"
|
||||
|
||||
- name: Configure pipx system install
|
||||
when:
|
||||
- pipx_imethod == 'system'
|
||||
block:
|
||||
- name: Queue pipx system install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['pipx'] }}"
|
||||
|
||||
- name: Finalise pipx system install
|
||||
ansible.builtin.set_fact:
|
||||
pipx_install: "{{ pipx_imethod }}=pipx"
|
||||
|
||||
- name: Finalise pipx configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'pipx': pipx_install } ) }}"
|
||||
@@ -1,5 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append podman to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['podman'] }}"
|
||||
@@ -1,15 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible:
|
||||
---
|
||||
- name: Add postgresql_server
|
||||
when:
|
||||
- postgresql_server_configured is undefined
|
||||
block:
|
||||
- name: Load postgresql_server config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/postgresql_server.yml
|
||||
|
||||
- name: Append postgresql server to pkg_sys
|
||||
when:
|
||||
- postgresql_server.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + postgresql_server.pkgs }}"
|
||||
@@ -1,17 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load pulumi config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/pulumi.yml
|
||||
|
||||
- name: Append pulumi to pkg_archive
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['pulumi'] }}"
|
||||
|
||||
- name: Append to pulumi to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['pulumi'] }}"
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add pyright
|
||||
when:
|
||||
- pyright_configured is undefined
|
||||
block:
|
||||
- name: Append pyright to pkg_pipx
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + ['pyright'] }}"
|
||||
|
||||
- name: Set pyright_configured
|
||||
ansible.builtin.set_fact:
|
||||
pyright_configured: true
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load python3 config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/python3.yml
|
||||
|
||||
- name: Append python3 to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + python3.pkgs }}"
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add quobix_vacuum
|
||||
when:
|
||||
- quobix_vacuum_configured is undefined
|
||||
block:
|
||||
- name: Append quobix/vacuum to pkg_npm
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@quobix/vacuum'] }}"
|
||||
|
||||
- name: Set quobix_vacuum_configured
|
||||
ansible.builtin.set_fact:
|
||||
quobix_vacuum_configured: true
|
||||
@@ -1,5 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append restic to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['restic'] }}"
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add revive
|
||||
when:
|
||||
- revive_configured is undefined
|
||||
block:
|
||||
- name: Append revive to pkg_go
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/mgechev/revive@latest'] }}"
|
||||
|
||||
- name: Set revive_configured
|
||||
ansible.builtin.set_fact:
|
||||
revive_configured: true
|
||||
@@ -1,5 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append ripgrep to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['ripgrep'] }}"
|
||||
@@ -1,5 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append samba_client to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + samba_client.pkgs }}"
|
||||
@@ -1,5 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append samba_server to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + samba_server.pkgs }}"
|
||||
@@ -1,19 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add sd
|
||||
block:
|
||||
- name: Append sd to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['sd'] }}"
|
||||
|
||||
- name: Append sd to pkg_cargo
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['sd'] }}"
|
||||
|
||||
- name: Set sd_configured
|
||||
ansible.builtin.set_fact:
|
||||
sd_configured: true
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add sqlfluff
|
||||
when:
|
||||
- sqlfluff_configured is undefined
|
||||
block:
|
||||
- name: Append sqlfluff to pkg_pipx
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + ['sqlfluff'] }}"
|
||||
|
||||
- name: Set sqlfluff_configured
|
||||
ansible.builtin.set_fact:
|
||||
sqlfluff_configured: true
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add sqlls
|
||||
when:
|
||||
- sqlls_configured is undefined
|
||||
block:
|
||||
- name: Append sql-language-server to pkg_npm
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['sql-language-server'] }}"
|
||||
|
||||
- name: Set sqlls_configured
|
||||
ansible.builtin.set_fact:
|
||||
sqlls_configured: true
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append stow to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['stow'] }}"
|
||||
|
||||
- name: Set stow_configured
|
||||
ansible.builtin.set_fact:
|
||||
stow_configured: true
|
||||
@@ -1,69 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load tailscale config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/tailscale.yml
|
||||
|
||||
- name: Append tailscale for linux
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
block:
|
||||
- name: Append tailscale for RedHat distros
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
block:
|
||||
- name: Add tailscale repo for Fedora >=41
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/tailscale.repo
|
||||
cmd: "dnf config-manager addrepo --from-repofile={{ tailscale.url_base }}/fedora/tailscale.repo"
|
||||
become: true
|
||||
when:
|
||||
- ansible_distribution == 'Fedora'
|
||||
- ansible_distribution_major_version|int >= 41
|
||||
|
||||
- name: Add tailscale repo for Fedora <41
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/tailscale.repo
|
||||
cmd: "dnf config-manager --add-repo {{ tailscale.url_base }}/fedora/tailscale.repo"
|
||||
become: true
|
||||
when:
|
||||
- ansible_distribution == 'Fedora'
|
||||
- ansible_distribution_major_version|int < 41
|
||||
|
||||
- name: Add tailscale for Rhel based distros
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/tailscale.repo
|
||||
cmd: "dnf config-manager --add-repo {{ tailscale.url_base }}/rhel/{{ ansible_os_major_version }}/tailscale.repo"
|
||||
become: true
|
||||
when:
|
||||
- ansible_distribution != 'Fedora'
|
||||
|
||||
- name: Append tailscale for Debian distros
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
block:
|
||||
- name: Install tailscale keyring
|
||||
block:
|
||||
- name: Get tailscal keyring
|
||||
become: "{{ sys_pkg_become }}"
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ tailscale.url_base }}/debian/{{ tailscale.release.gpg }}"
|
||||
dest: /usr/share/keyrings/tailscale-archive-keyring.gpg
|
||||
mode: '0644'
|
||||
|
||||
- name: Get tailscale repo list
|
||||
become: "{{ sys_pkg_become }}"
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ tailscale.url_base }}/debian/{{ tailscale.release.list }}"
|
||||
dest: /etc/apt/sources.list.d/tailscale.list
|
||||
mode: '0644'
|
||||
|
||||
- name: Append tailscale to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['tailscale'] }}"
|
||||
|
||||
- name: Append tailscale to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['tailscale'] }}"
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add tailwindcss_languageserver
|
||||
when:
|
||||
- tailwindcss_languageserver_configured is undefined
|
||||
block:
|
||||
- name: Add tailwindcss/language-server to pkg_npm
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@tailwindcss/language-server'] }}"
|
||||
|
||||
- name: Set tailwindcss_languageserver_configured
|
||||
ansible.builtin.set_fact:
|
||||
tailwindcss_languageserver_configured: true
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append tailwindcss to pkg_npm
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['tailwindcss' '@tailwindcss/cli'] }}"
|
||||
|
||||
- name: Append tailwindcss to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['tailwindcss'] }}"
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add templ
|
||||
when:
|
||||
- templ_configured is undefined
|
||||
block:
|
||||
- name: Append templ to pkg_go
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/a-h/templ/cmd/templ@latest'] }}"
|
||||
|
||||
- name: Set templ_configured
|
||||
ansible.builtin.set_fact:
|
||||
templ_configured: true
|
||||
@@ -1,33 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load terraform config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/terraform.yml
|
||||
|
||||
- name: Append terraform
|
||||
when:
|
||||
- terraform.method == 'sys'
|
||||
block:
|
||||
- name: Append terraform to pkg_tap
|
||||
when:
|
||||
- ansible_distribution == 'MacOSX'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_tap: "{{ pkg_tap + terraform.pkgs }}"
|
||||
|
||||
- name: Append terraform to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + terraform.pkgs }}"
|
||||
|
||||
- name: Append terraform to pkg_archive
|
||||
when:
|
||||
- terraform.method == 'archive'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['terraform'] }}"
|
||||
@@ -1,37 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load terraformls config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/terraformls.yml
|
||||
|
||||
- name: Append terraformls
|
||||
when:
|
||||
- terraformls.method == 'sys'
|
||||
block:
|
||||
- name: Append terraformls to pkg_tap
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_tap: "{{ pkg_tap + terraformls.pkgs }}"
|
||||
|
||||
- name: Append terraformls to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + terraformls.pkgs }}"
|
||||
|
||||
- name: Append terraformls to pkg_go
|
||||
when:
|
||||
- terraformls.method == 'gosrc'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + [terraformls.gopkg] }}"
|
||||
|
||||
- name: Set terraformls_configured
|
||||
ansible.builtin.set_fact:
|
||||
terraformls_configured: true
|
||||
@@ -1,15 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add tidy
|
||||
block:
|
||||
- name: Load tidy config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/tidy.yml
|
||||
|
||||
- name: Append tidy to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + tidy.pkgs }}"
|
||||
|
||||
- name: Set tidy_configured
|
||||
ansible.builtin.set_fact:
|
||||
tidy_configured: true
|
||||
@@ -1,19 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add tldr
|
||||
block:
|
||||
- name: Append tldr to pkg_sys
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['tlrc'] }}"
|
||||
|
||||
- name: Append tldr to pkg_cargo
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['tlrc'] }}"
|
||||
|
||||
- name: Set tldr_configured
|
||||
ansible.builtin.set_fact:
|
||||
tldr_configured: true
|
||||
@@ -1,11 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add tmux
|
||||
block:
|
||||
- name: Append tmux to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['tmux'] }}"
|
||||
|
||||
- name: Set tmux_configured
|
||||
ansible.builtin.set_fact:
|
||||
tmux_configured: true
|
||||
@@ -1,22 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add uwsm
|
||||
when:
|
||||
- ansible_os_family != 'Alpine'
|
||||
- ansible_os_family != 'Darwin'
|
||||
block:
|
||||
- name: Load uwsm config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/uwsm.yml
|
||||
|
||||
- name: Append uwsm build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + uwsm.build_deps + uwsm.deps }}"
|
||||
|
||||
- name: Append uwsm to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['uwsm'] }}"
|
||||
|
||||
- name: Set uwsm_configured
|
||||
ansible.builtin.set_fact:
|
||||
uwsm_configured: true
|
||||
@@ -1,93 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add vault
|
||||
block:
|
||||
- name: Load vault config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/vault.yml
|
||||
|
||||
- name: Append vault
|
||||
when:
|
||||
- vault.method == 'sys'
|
||||
block:
|
||||
- name: Append vault to pkg_tap
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_tap: "{{ pkg_tap + vault.pkgs }}"
|
||||
|
||||
- name: Append vault to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + vault.pkgs }}"
|
||||
|
||||
- name: Append vault to pkg_archive
|
||||
when:
|
||||
- vault.method == 'archive'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['vault'] }}"
|
||||
|
||||
- name: Create group for vault
|
||||
become: true
|
||||
when:
|
||||
- ansible_os_family == 'Alpine'
|
||||
ansible.builtin.group:
|
||||
name: vault
|
||||
system: true
|
||||
state: present
|
||||
|
||||
- name: Create user for vault
|
||||
become: true
|
||||
when:
|
||||
- ansible_os_family == 'Alpine'
|
||||
ansible.builtin.user:
|
||||
comment: hashicorp vault user
|
||||
generate_ssh_key: true
|
||||
home: /var/lib/vault
|
||||
name: vault
|
||||
group: vault
|
||||
ssh_key_file: .ssh/id_ed25519
|
||||
ssh_key_type: ed25519
|
||||
state: present
|
||||
system: true
|
||||
|
||||
- name: Install vault openrc script
|
||||
become: true
|
||||
when:
|
||||
- ansible_os_family == 'Alpine'
|
||||
ansible.builtin.copy:
|
||||
backup: false
|
||||
dest: /etc/init.d/vault
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0755'
|
||||
src: vault/Alpine/openrc
|
||||
|
||||
- name: Ensure /etc/vault exists
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: /etc/vault
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0755'
|
||||
|
||||
- name: Install vault basic config.hcl
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: vault/config.hcl.j2
|
||||
dest: /etc/vault/config.hcl
|
||||
mode: '0644'
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Set vault_configured
|
||||
ansible.builtin.set_fact:
|
||||
vault_configured: true
|
||||
@@ -1,5 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add wofi to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['wofi'] }}"
|
||||
@@ -1,23 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add xh
|
||||
block:
|
||||
- name: Load xh config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/xh.yml
|
||||
|
||||
- name: Append xh to pkg_sys
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['xh'] }}"
|
||||
|
||||
- name: Add xh to cargopkgs
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + [xh] }}"
|
||||
|
||||
- name: Set xh_configured
|
||||
ansible.builtin.set_fact:
|
||||
xh_configured: true
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add yamlls
|
||||
when:
|
||||
- yamlls_configured is undefined
|
||||
block:
|
||||
- name: Append yaml-language-server to pkg_npm
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['yaml-language-server'] }}"
|
||||
|
||||
- name: Set yamlls_configured
|
||||
ansible.builtin.set_fact:
|
||||
yamlls_configured: true
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Install for Linux via flatpak
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + ['app.zen_browser.zen'] }}"
|
||||
|
||||
- name: Install for MacOSX using homebrew cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['zen-browser'] }}"
|
||||
@@ -1,28 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add zfs
|
||||
block:
|
||||
- name: Load zfs config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/zfs.yml
|
||||
|
||||
- name: Linux based installation
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
block:
|
||||
- name: Append zfs to pkg_sys
|
||||
notify:
|
||||
- Depend zfs repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + zfs.deps + zfs.pkgs }}"
|
||||
|
||||
- name: Append openzfs to pkg_cask
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['openzfs'] }}"
|
||||
|
||||
- name: Set zfs_configured
|
||||
ansible.builtin.set_fact:
|
||||
zfs_configured: true
|
||||
@@ -1,17 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add zls
|
||||
when:
|
||||
- zls_configured is undefined
|
||||
block:
|
||||
- name: Load zls config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/zls.yml
|
||||
|
||||
- name: Append zls to pkg_archive
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['zls'] }}"
|
||||
|
||||
- name: Set zls_configured
|
||||
ansible.builtin.set_fact:
|
||||
zls_configured: true
|
||||
@@ -1,4 +1,10 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: zoxide
|
||||
## Description: cli path bookmark manager
|
||||
## Version: latest
|
||||
## Methods: [source, system]
|
||||
## Helpers: cargo
|
||||
---
|
||||
- name: Set zoxide default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
@@ -6,6 +12,7 @@
|
||||
methods:
|
||||
- source
|
||||
- system
|
||||
pkgname: zoxide
|
||||
cargo:
|
||||
name: zoxide
|
||||
pkg_deps:
|
||||
@@ -27,7 +34,8 @@
|
||||
block:
|
||||
- name: Append zoxide to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['zoxide'] }}"
|
||||
pkg_sys: "{{ pkg_sys + [zoxide.pkgname] }}"
|
||||
zoxide_install: "{{ zoxide_imethod }}={{ zoxide.pkgname }}"
|
||||
|
||||
- name: Configure zoxide cargo install
|
||||
when:
|
||||
@@ -35,8 +43,9 @@
|
||||
block:
|
||||
- name: Set zoxide cargo facts
|
||||
ansible.builtin.set_fact:
|
||||
zoxide_cargo_install: "{{ zoxide.cargo }}"
|
||||
pkg_cargo: "{{ pkg_cargo + [zoxide.cargo] }}"
|
||||
zoxide_install: "{{ zoxide.imethod }}={{ zoxide.cargo }}"
|
||||
|
||||
- name: Set zoxide_configured
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'zoxide': zoxide_imethod } ) }}"
|
||||
__configured: "{{ __configured | combine( { 'zoxide': zoxide_install } ) }}"
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: zsh
|
||||
## Description: an sh compatible shell with a great completion engine
|
||||
## Version: system
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Set zsh default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
Reference in New Issue
Block a user