configure defaults, upgrade go to 1.23.6

This commit is contained in:
Matthew Stobbs
2025-02-07 10:24:41 -07:00
parent abc374ea27
commit b34ce3b460
11 changed files with 67 additions and 65 deletions

View File

@@ -26,7 +26,7 @@
ansible.builtin.get_url:
dest: "{{ d_go_dl_tmp.path }}/{{ go_archive }}"
url: "https://go.dev/dl/{{ go_archive }}"
checksum: "{{ pkgconfig_go[pkgconfig_go.version][ansible_system][arch] }}"
checksum: "{{ pkgconfig_go.sums[pkgconfig_go.version][ansible_system][arch] }}"
decompress: false
- name: ensure go install dir exists

View File

@@ -21,8 +21,8 @@
CMAKE_BUILD_TYPE: "{{ pkgconfig_neovim.build_type }}"
CMAKE_INSTALL_PREFIX: "{{ pkgconfig_neovim.install_prefix }}"
target: install
become: "{{ pkgconfig_neovim.become }}"
become_user: "{% if pkgconfig_neovim.become %}{{ pkgconfig_neovim.owner }}{% else %}~{% endif %}"
become: "{{ pkgconfig_neovim.dobecome }}"
become_user: "{% if pkgconfig_neovim.dobecome %}{{ pkgconfig_neovim.owner }}{% else %}~{% endif %}"
when: not pkgconfig_neovim.use_appimage
- name: install neovim appimage
@@ -50,5 +50,5 @@
path: "{{ pkgconfig_neovim.install_prefix }}/bin/nvim"
when:
- pkgconfig_neovim.use_appimage
become: "{{ pkgconfig_neovim.become }}"
become_user: "{% if pkgconfig_neovim.become %}{{ pkgconfig_neovim.owner }}{% else %}~{% endif %}"
become: "{{ pkgconfig_neovim.dobecome }}"
become_user: "{% if pkgconfig_neovim.dobecome %}{{ pkgconfig_neovim.owner }}{% else %}~{% endif %}"

View File

@@ -2,52 +2,54 @@
- name: generate package installation lists
ansible.builtin.include_tasks:
file: addpkg.yml
loop: "{{ packages }}"
loop: "{{ packages | unique }}"
loop_control:
loop_var: pkg
- name: upgrade all packages
- name: redhat based OS
block:
- name: upgrade dnf packages
ansible.builtin.dnf:
name: "*"
state: latest
become: true
when: full_upgrade
- name: install dnf packages
ansible.builtin.dnf:
name: "{{ syspkgs | unique }}"
state: "{{ install_state }}"
become: true
when:
- syspkgs|length > 0
when: ansible_os_family == 'RedHat'
- name: debian based OS
block:
- name: upgrade apt packages
ansible.builtin.apt:
name: "*"
state: latest
become: true
when: full_upgrade
- name: install apt packages
ansible.builtin.apt:
name: "{{ syspkgs | unique }}"
state: "{{ install_state }}"
become: true
when:
- syspkgs|length > 0
when: ansible_os_family == 'Debian'
- name: darwin/macOS based OS
block:
- name: upgrade homebrew packages
community.general.homebrew:
name: "*"
state: latest
when: ansible_os_family == 'Darwin'
become: true
when: full_upgrade
- name: Linux specific installation
block:
- name: install dnf packages
ansible.builtin.dnf:
name: "{{ syspkgs }}"
state: "{{ install_state }}"
when: ansible_os_family == 'RedHat'
- name: install apt packages
ansible.builtin.apt:
name: "{{ syspkgs }}"
state: "{{ install_state }}"
when: ansible_os_family == 'Debian'
become: true
when:
- ansible_system == 'Linux'
- syspkgs|length > 0
- name: Macos specific installation
block:
- name: tap homebrew taps
community.general.homebrew_tap:
name: "{{ brewtaps | unique }}"
@@ -56,7 +58,7 @@
- name: install homebrew packages
community.general.homebrew:
name: "{{ syspkgs }}"
name: "{{ syspkgs | unique }}"
state: "{{ install_state }}"
when: syspkgs|length > 0
@@ -69,7 +71,7 @@
- name: workaround to install homebrew taps
ansible.builtin.command:
cmd: "brew install {{ tappkg }}"
loop: "{{ tappkgs }}"
loop: "{{ tappkgs | unique }}"
loop_control:
loop_var: tappkg
when: ansible_os_family == 'Darwin'
@@ -77,7 +79,7 @@
- name: install srcpkgs
ansible.builtin.include_tasks:
file: "build/{{ srcpkg }}.yml"
loop: "{{ srcpkgs }}"
loop: "{{ srcpkgs | unique }}"
loop_control:
loop_var: srcpkg
when: srcpkgs|length > 0
@@ -90,7 +92,7 @@
locked: "{{ cargopkg.locked | default(false) }}"
become: true
when: cargoversioned|length > 0
loop: "{{ cargoversioned }}"
loop: "{{ cargoversioned | unique }}"
loop_control:
loop_var: cargopkg
@@ -100,29 +102,27 @@
state: latest
locked: "{{ cargopkg.locked | default(false) }}"
when: cargopkgs|length > 0
loop: "{{ cargopkgs }}"
loop: "{{ cargopkgs | unique }}"
loop_control:
loop_var: cargopkg
- name: Install local npm packages
when: packages.npm is defined
community.general.npm:
global: true
name: "{{ npmpkg }}"
state: latest
loop: "{{ npmpkgs }}"
loop: "{{ npmpkgs | unique }}"
loop_control:
loop_var: npmpkg
when: npmpkgs|length > 0
- name: Install local go packages
become: true
environment:
GOROOT: /usr/local/go
PATH: /usr/local/go/bin:$PATH
ansible.builtin.command:
cmd: "go install {{ gopkg }}"
loop: "{{ gopkgs }}"
loop: "{{ gopkgs | unique }}"
loop_control:
loop_var: gopkg
when: gopkgs|length > 0
@@ -131,7 +131,7 @@
ansible.builtin.pip:
name: "{{ pipxpkg }}"
state: latest
loop: "{{ pipxpkgs }}"
loop: "{{ pipxpkgs | unique }}"
loop_control:
loop_var: pipxpkg
when: pipxpkgs|length > 0

View File

@@ -1,6 +1,6 @@
---
version: 0.15.0
install_prefix: /usr/local
install_prefix: "{{ default_config.install_prefix }}"
# variables that aren't really configuration
build_deps:

View File

@@ -1,15 +1,23 @@
---
version: 1.23.5
install_path: /usr/local
version: 1.23.6
install_path: "{{ default_config.install_prefix }}"
# checksums by version and ansible_system
1.23.5:
sums:
1.23.6:
Darwin:
arm64: sha256:f819ed94939e08a5016b9a607ec84ebbde6cb3fe59750c59d97aa300c3fd02df
amd64: sha256:d2b06bf0b8299e0187dfe2d8ad39bd3dd96a6d93fe4d1cfd42c7872452f4a0a2
amd64: 7fa387c228b4dd69b518a5d9425638fa5c0d86ec8943de373e3802aff2e5b12a
arm64: a167758a44e08af6eddf844ed86a6acdbff1d3957248913bbca7ee4ef6ff07d0
Linux:
amd64: sha256:cbcad4a6482107c7c7926df1608106c189417163428200ce357695cc7e01d091
arm64: sha256:47c84d332123883653b70da2db7dd57d2a865921ba4724efcdf56b5da7021db0
amd64: 561c780e8f4a8955d32bf72e46af0b5ee5e0debe1e4633df9a03781878219202
arm64: 561c780e8f4a8955d32bf72e46af0b5ee5e0debe1e4633df9a03781878219202
1.23.5:
Darwin:
amd64: d2b06bf0b8299e0187dfe2d8ad39bd3dd96a6d93fe4d1cfd42c7872452f4a0a2
arm64: f819ed94939e08a5016b9a607ec84ebbde6cb3fe59750c59d97aa300c3fd02df
Linux:
amd64: cbcad4a6482107c7c7926df1608106c189417163428200ce357695cc7e01d091
arm64: 47c84d332123883653b70da2db7dd57d2a865921ba4724efcdf56b5da7021db0
# maps used in variables
archmap:

View File

@@ -1,5 +1,5 @@
version: 3.13.5
install_prefix: /usr/local
install_prefix: "{{ default_config.install_prefix }}"
install_path: /opt/lua-language-server
base_url: https://github.com/LuaLS/lua-language-server/releases/download
sysmap:

View File

@@ -1,6 +1,6 @@
---
version: 0.14.0
install_prefix: /usr/local
install_prefix: "{{ default_config.install_prefix }}"
#required variables
git_repo: https://github.com/neovide/neovide.git

View File

@@ -1,11 +1,11 @@
---
version: v0.10.3
install_prefix: /usr/local
install_prefix: "{{ default_config.install_prefix }}"
install_dir: /opt/nvim
use_appimage: true
use_syspkg: true
build_type: Release
become: true
dobecome: true
git_repo: https://github.com/neovim/neovim
appimage_url_pfx: https://github.com/neovim/neovim/releases/download
owner: root

View File

@@ -1,6 +0,0 @@
Darwin:
pkgs:
- hashicorp/tap/packer
Linux:
pkgs:
- packer

View File

@@ -1,6 +1,6 @@
---
version: 0.13.0
install_prefix: /usr/local
install_prefix: "{{ default_config.install_prefix }}"
install_path: /opt/zig
base_url: https://ziglang.org/download
sysmap:

View File

@@ -1,6 +1,6 @@
---
version: 0.13.0
install_prefix: /usr/local
install_prefix: "{{ default_config.install_prefix }}"
install_path: /opt/zls
base_url: https://builds.zigtools.org
sysmap: