start adding other packages sources

- adding sources for cargo, npm and go source packages
This commit is contained in:
Matthew Stobbs
2025-01-21 22:11:15 -07:00
parent 15d39f39ee
commit 1ec4bda33f
29 changed files with 75 additions and 28 deletions

View File

@@ -0,0 +1,4 @@
---
- name: add dotenv-linter to cargopkgs
ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + ['dotenv-linter'] }}"

View File

@@ -0,0 +1,4 @@
---
- name: add eza to cargopkgs
ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + ['eza'] }}"

View File

@@ -0,0 +1,5 @@
---
- name: add htmx-lsp to cargopkgs
ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + ['htmx-lsp'] }}"

View File

@@ -0,0 +1,5 @@
---
- name: add starship to cargopkgs
ansible.builtin.set_fact:
cargopkgs: "{{ cargopkgs + ['starship'] }}"

View File

@@ -38,7 +38,7 @@
path: "{{ _go.install_path }}" path: "{{ _go.install_path }}"
state: directory state: directory
- name: extract go package for Linux - name: extract go package
become: true become: true
ansible.builtin.unarchive: ansible.builtin.unarchive:
dest: "{{ _go.install_path }}" dest: "{{ _go.install_path }}"

View File

0
tasks/build/go_glow.yml Normal file
View File

View File

View File

0
tasks/build/gopls.yml Normal file
View File

View File

View File

View File

View File

@@ -1,4 +1,8 @@
--- ---
- ansible.builtin.include_vars:
file: nushell.yml
name: _nushell
- name: install nushell via cargo - name: install nushell via cargo
become: true become: true
ansible.builtin.command: ansible.builtin.command:
@@ -11,17 +15,4 @@
- --locked - --locked
loop_control: loop_control:
loop_var: nuitem loop_var: nuitem
loop: loop: "{{ _nushell.nu_pkgs_list }}"
- nu
- nu_plugin_inc
- nu_plugin_polars
- nu_plugin_gstat
- nu_plugin_formats
- nu_plugin_query
- nu_plugin_highlight
- nu_plugin_json_path
- nu_plugin_net
- nu_plugin_prometheus
- nu_plugin_qr_maker
- nu_plugin_rpm
- nu_plugin_semver

View File

View File

View File

@@ -1,7 +1,11 @@
--- ---
- ansible.builtin.include_vars:
file: zig.yml
name: _zig
- name: download zig archive - name: download zig archive
ansible.builtin.set_fact: ansible.builtin.set_fact:
zig_pkg: "zig-linux-{{ ansible_archtecture }}-{{ versions.zig }}.tar.xz" zig_pkg: "zig-{{ _zig.sysmap[ansible_system] }}-{{ _zig.archmap[ansible_archtecture] }}-{{ _zig.version }}.tar.xz"
- name: create temp path - name: create temp path
ansible.builtin.tempfile: ansible.builtin.tempfile:
@@ -14,3 +18,10 @@
dest: "{{ d_zig_dl_tmp.path }}/{{ zig_pkg }}" dest: "{{ d_zig_dl_tmp.path }}/{{ zig_pkg }}"
url: "{{ _zig.base_url }}/{{ zig_pkg }}" url: "{{ _zig.base_url }}/{{ zig_pkg }}"
decompress: false decompress: false
- name: extract zig package
become: true
ansible.builtin.unarchive:
dest: "{{ _zig.install_path }}"
src: "{{ d_zig_dl_tmp.path }}/{{ zig_pkg }}"
remote_src: true

View File

@@ -1,4 +1,8 @@
--- ---
- ansible.builtin.include_vars:
file: carapace.yml
name: _carapace
- name: append carapace to syspkgs - name: append carapace to syspkgs
set_fact: set_fact:
syspkgs: "{{ syspkgs + [ 'carapace' ] }}" syspkgs: "{{ syspkgs + [ 'carapace' ] }}"

View File

@@ -1,5 +1,9 @@
--- ---
- name: install RedHat dependencies - ansible.builtin.include_vars:
file: nushell.yml
name: _nushell
- name: install macOS dependencies
set_fact: set_fact:
nushell_pkgdeps: nushell_pkgdeps:
- cargo - cargo
@@ -7,8 +11,8 @@
- openssl-devel - openssl-devel
- libX11-devel - libX11-devel
nushell_altdeps: nushell_altdeps:
- Linux/nushell.yml - build/nushell.yml
- "{{ ansible_os_family }}/carapace.yml" - "pkgs/{{ ansible_os_family }}/carapace.yml"
- name: append to pkgs - name: append to pkgs
set_fact: set_fact:

View File

@@ -1,3 +1,2 @@
--- ---
_carapace:
version: 1.1.1 version: 1.1.1

View File

@@ -2,6 +2,7 @@
version: 1.23.5 version: 1.23.5
install_path: /usr/local install_path: /usr/local
archmap: archmap:
arm64: arm64
aarch64: arm64 aarch64: arm64
x86_64: amd64 x86_64: amd64
1.23.5: 1.23.5:

View File

@@ -4,6 +4,7 @@ packages: []
syspkgs: [] syspkgs: []
srcpkgs: [] srcpkgs: []
caskpkgs: [] caskpkgs: []
cargopkgs: []
assume_missing_is_syspkg: false assume_missing_is_syspkg: false
install_state: present install_state: present
full_upgrade: false full_upgrade: false

View File

@@ -1,4 +1,16 @@
--- ---
_nushell:
install_prefix: /usr/local install_prefix: /usr/local
nu_pkgs_list:
- nu
- nu_plugin_inc
- nu_plugin_polars
- nu_plugin_gstat
- nu_plugin_formats
- nu_plugin_query
- nu_plugin_highlight
- nu_plugin_json_path
- nu_plugin_net
- nu_plugin_prometheus
- nu_plugin_qr_maker
- nu_plugin_rpm
- nu_plugin_semver

View File

@@ -1,5 +1,11 @@
--- ---
_zig:
version: 0.13.0 version: 0.13.0
install_path: /usr/local install_path: /usr/local
base_url: https://ziglang.org/download base_url: https://ziglang.org/download
sysmap:
Darwin: macos
Linux: linux
archmap:
aarch64: aarch64
arm64: aarch64
x86_64: x86_64