basic installs working
need to run tests on all the builds alone, should use a container system
This commit is contained in:
@@ -47,8 +47,8 @@
|
||||
- name: Configure pkg dependencies
|
||||
loop: "{{ air.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: pkg
|
||||
ansible.builtin.include_tasks: "pkgs/{{ pkg }}.yml"
|
||||
loop_var: dep
|
||||
ansible.builtin.include_tasks: "pkgs/{{ dep }}.yml"
|
||||
|
||||
- name: Add air to install list
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
Alpine: ansible
|
||||
Archlinux: ansible
|
||||
pip: ansible
|
||||
pkg_deps:
|
||||
- pipx
|
||||
# }}}
|
||||
- name: Configure ansible
|
||||
when:
|
||||
@@ -45,6 +47,12 @@
|
||||
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:
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
FreeBSD: py311-ansible-lint
|
||||
pip:
|
||||
name: ansible_lint
|
||||
pkg_deps:
|
||||
- pipx
|
||||
# }}}
|
||||
- name: Configure ansible_lint
|
||||
when:
|
||||
@@ -59,6 +61,12 @@
|
||||
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]] }}"
|
||||
|
||||
@@ -10,8 +10,13 @@
|
||||
ansible.builtin.set_fact:
|
||||
cmakelang:
|
||||
methods:
|
||||
- source
|
||||
- system
|
||||
pkgname: cmakelang
|
||||
pkgname:
|
||||
RedHat: cmakelang
|
||||
pip: cmakelang
|
||||
pkg_deps:
|
||||
- pipx
|
||||
# }}}
|
||||
- name: Add cmakelang
|
||||
when:
|
||||
@@ -35,6 +40,29 @@
|
||||
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:
|
||||
__configured: "{{ __configured | combine( { 'cmakelang': cmakelang_install } ) }}"
|
||||
|
||||
@@ -10,12 +10,17 @@
|
||||
ansible.builtin.set_fact:
|
||||
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:
|
||||
@@ -39,6 +44,20 @@
|
||||
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 } ) }}"
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
loop: "{{ ghostty.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: dep
|
||||
ansible.bulitin.include_tasks: pkgs/{{ dep }}.yml
|
||||
ansible.builtin.include_tasks: pkgs/{{ dep }}.yml
|
||||
|
||||
- name: Add ghostty system dependencies
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
@@ -12,9 +12,8 @@
|
||||
methods:
|
||||
- system
|
||||
pkgname:
|
||||
RedHat: [nodejs]
|
||||
Debian: [nodejs]
|
||||
Alpine: [nodejs]
|
||||
RedHat:
|
||||
- nodejs
|
||||
FreeBSD:
|
||||
- node
|
||||
- npm
|
||||
@@ -32,12 +31,9 @@
|
||||
when:
|
||||
- nodejs_imethod == "system"
|
||||
block:
|
||||
- name: Set nodejs package name
|
||||
ansible.builtin.set_fact:
|
||||
nodejs_pkgname: "{{ nodejs.pkgname[os_family] }}"
|
||||
- name: Append nodejs to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [nodejs_pkgname] }}"
|
||||
pkg_sys: "{{ pkg_sys + nodejs.pkgname[os_family] }}"
|
||||
|
||||
- name: Finalize nodejs configuration
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
@@ -1,5 +1,33 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append pipx to pkg_sys
|
||||
- name: Set pipx default facts
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['pipx'] }}"
|
||||
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 } ) }}"
|
||||
|
||||
@@ -4,7 +4,12 @@
|
||||
ansible.builtin.set_fact:
|
||||
zoxide:
|
||||
methods:
|
||||
- source
|
||||
- system
|
||||
cargo:
|
||||
name: zoxide
|
||||
pkg_deps:
|
||||
- cargo
|
||||
# }}}
|
||||
- name: Configure zoxide
|
||||
when:
|
||||
@@ -16,9 +21,21 @@
|
||||
ansible.builtin.set_fact:
|
||||
zoxide_imethod: "{{ imethod if imethod in zoxide.methods else zoxide.methods[0] }}"
|
||||
|
||||
- name: Append zoxide to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['zoxide'] }}"
|
||||
- name: Configure zoxide system install
|
||||
when:
|
||||
- zoxide_imethod == 'system'
|
||||
block:
|
||||
- name: Append zoxide to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['zoxide'] }}"
|
||||
|
||||
- name: Configure zoxide cargo install
|
||||
when:
|
||||
- zoxide_imethod == 'source'
|
||||
block:
|
||||
- name: Set zoxide cargo facts
|
||||
ansible.builtin.set_fact:
|
||||
zoxide_cargo_install: "{{ zoxide.cargo }}"
|
||||
|
||||
- name: Set zoxide_configured
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
Reference in New Issue
Block a user