just finished cbfmt
This commit is contained in:
@@ -101,7 +101,7 @@
|
|||||||
- name: Set alacritty install extra build deps
|
- name: Set alacritty install extra build deps
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == "RedHat"
|
- ansible_os_family == "RedHat"
|
||||||
- ansible_os_major_version < 9
|
- ansible_distribution_major_version|int <= 8
|
||||||
block:
|
block:
|
||||||
- name: Add extra dependencies for EL7
|
- name: Add extra dependencies for EL7
|
||||||
when:
|
when:
|
||||||
|
|||||||
@@ -33,13 +33,13 @@
|
|||||||
when:
|
when:
|
||||||
- ansible_install_method == "system"
|
- ansible_install_method == "system"
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + [ ansible_pkgname[os_family] ] }}"
|
pkg_sys: "{{ pkg_sys + [ ansible.pkgname[os_family] ] }}"
|
||||||
|
|
||||||
- name: Append ansible to pipx install list
|
- name: Append ansible to pipx install list
|
||||||
when:
|
when:
|
||||||
- ansible_install_method == 'source'
|
- ansible_install_method == 'source'
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_pipx: "{{ pkg_pipx + [ { 'name': ansible_pkgname['pip'] } ] }}"
|
pkg_pipx: "{{ pkg_pipx + [ { 'name': ansible.pkgname['pip'] } ] }}"
|
||||||
|
|
||||||
- name: Complete ansible configuration
|
- name: Complete ansible configuration
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
when:
|
when:
|
||||||
- ansible_lint_install_method is undefined
|
- ansible_lint_install_method is undefined
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
ansible_lint_install_method: "{{ install_method if install_method in ansible_lint_install_methods else ansible_lint_methods[0] }}"
|
ansible_lint_install_method: "{{ install_method if install_method in ansible_lint.install_methods else ansible_lint.install_methods[0] }}"
|
||||||
|
|
||||||
- name: Configure pipx source install
|
- name: Configure pipx source install
|
||||||
when:
|
when:
|
||||||
|
|||||||
@@ -45,3 +45,9 @@
|
|||||||
name: "{{ bitwarden.flatpak.name }}"
|
name: "{{ bitwarden.flatpak.name }}"
|
||||||
remote: "{{ bitwarden.flatpak.remote }}"
|
remote: "{{ bitwarden.flatpak.remote }}"
|
||||||
method: "{{ bitwarden_flatpak_method | default(flatpak_method) }}"
|
method: "{{ bitwarden_flatpak_method | default(flatpak_method) }}"
|
||||||
|
|
||||||
|
- name: Finalize bitwarden configuration
|
||||||
|
when:
|
||||||
|
- "'bitwarden' not in __configured"
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
__configured: "{{ __configured | combine( { 'bitwarden': bitwarden_install_method } ) }}"
|
||||||
|
|||||||
@@ -1,24 +1,58 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
|
- name: Set default broot values
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
broot:
|
||||||
|
install_methods:
|
||||||
|
- system
|
||||||
|
- source
|
||||||
|
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: Add broot
|
- name: Add broot
|
||||||
|
when:
|
||||||
|
- "'broot' not in __configured"
|
||||||
block:
|
block:
|
||||||
- name: Load broot config
|
- name: Set broot install method
|
||||||
ansible.builtin.include_tasks:
|
|
||||||
file: config/broot.yml
|
|
||||||
|
|
||||||
- name: Append broot to pkg_sys and pkg_cargo
|
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- broot_install_method is undefined
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + broot.deps }}"
|
broot_install_method: "{{ install_method if install_method in broot.install_methods else broot.install_methods[0] }}"
|
||||||
pkg_cargo: "{{ pkg_cargo + [broot] }}"
|
|
||||||
|
|
||||||
- name: Append broot to pkg_sys
|
- name: Configure broot source install
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Darwin'
|
- broot_install_method == 'source'
|
||||||
ansible.builtin.set_fact:
|
block:
|
||||||
pkg_sys: "{{ pkg_sys + ['broot'] }}"
|
- 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: Configure broot system install
|
||||||
|
when:
|
||||||
|
- broot_install_method == 'system'
|
||||||
|
block:
|
||||||
|
- name: Append broot to pkg_sys
|
||||||
|
when:
|
||||||
|
- ansible_system == 'Darwin'
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
pkg_sys: "{{ pkg_sys + ['broot'] }}"
|
||||||
|
|
||||||
- name: Set broot_configured
|
- name: Set broot_configured
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
broot_configured: true
|
__configured: "{{ __configured | combine( { 'broot': broot_install_method } ) }}"
|
||||||
|
|||||||
@@ -1,5 +1,26 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- name: Append btop to pkg_ssys
|
- name: Set default btop options
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + ['btop'] }}"
|
btop:
|
||||||
|
install_methods:
|
||||||
|
- system
|
||||||
|
pkgname: btop
|
||||||
|
- name: Configure btop install
|
||||||
|
when:
|
||||||
|
- "'btop' not in __configured"
|
||||||
|
block:
|
||||||
|
- name: Set btop install method
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
btop_install_method: "{{ install_method if install_method in btop.install_methods else btop.install_methods[0] }}"
|
||||||
|
|
||||||
|
- name: Configure btop system install
|
||||||
|
when:
|
||||||
|
- btop_install_method == 'system'
|
||||||
|
block:
|
||||||
|
- name: Append btop to pkg_sys
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
pkg_sys: "{{ pkg_sys + [btop.pkgname] }}"
|
||||||
|
- name: Finalise btop configuration
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
__configured: "{{ __configured | combine( { 'btop': btop_install_method } ) }}"
|
||||||
|
|||||||
@@ -1,13 +1,34 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- name: Add buf
|
- name: Set default buf values
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
buf:
|
||||||
|
install_methods:
|
||||||
|
- source
|
||||||
|
build_deps:
|
||||||
|
- go
|
||||||
|
version: latest
|
||||||
|
go_pkg: github.com/bufbuild/buf/cmd/buf
|
||||||
|
- name: Configure bug install
|
||||||
when:
|
when:
|
||||||
- buf_configured is undefined
|
- "'buf' not in __configured"
|
||||||
block:
|
block:
|
||||||
- name: Append buf to pkg_go
|
- name: Set buf install method
|
||||||
|
when:
|
||||||
|
- buf_install_method is undefined
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf/cmd/buf@latest'] }}"
|
buf_install_method: "{{ install_method if install_method in buf.install_methods else buf.install_methods[0] }}"
|
||||||
|
|
||||||
- name: Set buf_configured
|
- name: Configure buf source install
|
||||||
|
when:
|
||||||
|
- buf_install_method == 'source'
|
||||||
|
block:
|
||||||
|
- name: Append buf to pkg_go
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
buf_go_install:
|
||||||
|
bin: buf
|
||||||
|
url: "{{ buf.go_pkg }}@{{ buf.version }}"
|
||||||
|
|
||||||
|
- name: Finalise buf configuration
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
buf_configured: true
|
__configured: "{{ __configured | combine( { 'buf': buf_install_method } ) }}"
|
||||||
|
|||||||
@@ -1,13 +1,31 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- name: Add bufls
|
- name: Set default bufls options
|
||||||
when:
|
ansible.builtin.set_fact:
|
||||||
- bufls_configured is undefined
|
bufls:
|
||||||
block:
|
install_methods:
|
||||||
- name: Append bufls to pkg_go
|
- source
|
||||||
ansible.builtin.set_fact:
|
version: latest
|
||||||
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf-language-server/cmd/bufls@latest'] }}"
|
go_pkg: github.com/bufbuild/buf-language-server/cmd/bufls
|
||||||
|
|
||||||
- name: Set bufls_configured
|
- name: Configure bufls install
|
||||||
|
when:
|
||||||
|
- "'bufls' not in __configured"
|
||||||
|
block:
|
||||||
|
- name: Set bufls install method
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
bufls_configured: true
|
bufls_install_method: "{{ install_method if install_method in bufls.install_methods else bufls.install_methods[0] }}"
|
||||||
|
|
||||||
|
- name: Configure bufls source install
|
||||||
|
when:
|
||||||
|
- bufls_install_method == '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: Finalise bufls configuration
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
__configured: "{{ __configured | combine( { 'bufls': bufls_install_method } ) }}"
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
|
- name: Set default cargo values
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
cargo:
|
||||||
|
install_methods:
|
||||||
|
- system
|
||||||
- name: Configure cargo
|
- name: Configure cargo
|
||||||
when:
|
when:
|
||||||
- "'cargo' not in __configured"
|
- "'cargo' not in __configured"
|
||||||
@@ -8,12 +13,12 @@
|
|||||||
when:
|
when:
|
||||||
- cargo_install_method is undefined
|
- cargo_install_method is undefined
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
cargo_install_method: "{{ install_method if install_method in cargo_install_methods else cargo_install_methods[0] }}"
|
cargo_install_method: "{{ install_method if install_method in cargo.install_methods else cargo.install_methods[0] }}"
|
||||||
|
|
||||||
- name: Add dependencies
|
- name: Add dependencies
|
||||||
when:
|
when:
|
||||||
- cargo_pkgdeps is defined
|
- cargo_pkgdeps is defined
|
||||||
loop: cargo_pkgdeps
|
loop: "{{ cargo_pkgdeps }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: dep
|
loop_var: dep
|
||||||
ansible.builtin.include_tasks: "pkgs/{{ dep }}.yml"
|
ansible.builtin.include_tasks: "pkgs/{{ dep }}.yml"
|
||||||
|
|||||||
@@ -1,6 +1,29 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- name: Set cbfmt config
|
- name: Set default cbfmt values
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
cbfmt:
|
cbfmt:
|
||||||
pkgs: "{{ pkgconfig.cbfmt.pkgs }}"
|
install_methods:
|
||||||
|
- system
|
||||||
|
pkgname: cbfmt
|
||||||
|
- name: Configure cbfmt install
|
||||||
|
when:
|
||||||
|
- "'cbfmt' not in __configured"
|
||||||
|
block:
|
||||||
|
- name: Set cbfmt install method
|
||||||
|
when:
|
||||||
|
- cbfmt_install_method is undefined
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
cbfmt_install_method: "{{ install_method if install_method in cbfmt.install_methods else cbfmt.install_methods[0] }}"
|
||||||
|
|
||||||
|
- name: Configure cbfmt system install
|
||||||
|
when:
|
||||||
|
- cbfmt_install_method == 'system'
|
||||||
|
block:
|
||||||
|
- name: Append cbfmt to system install list
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
pkg_sys: "{{ pkg_sys + [cbfmt.pkgname] }}"
|
||||||
|
|
||||||
|
- name: Finalise cbfmt configuration
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
__configured: "{{ __configured | combine( { 'cbfmt': cbfmt_install_method } ) }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user