add more for Alpine

This commit is contained in:
Matthew Stobbs
2025-03-10 21:05:47 -06:00
parent 51d97dd18f
commit 2e885b31ac
18 changed files with 89 additions and 33 deletions

View File

@@ -0,0 +1,13 @@
- name: Download terraform archive
ansible.builtin.get_url:
dest: "{{ d_tempdir.path }}/{{ terraform.file }}"
url: "{{ terraform.url }}/{{ terraform.file }}"
decompress: false
mode: '0644'
- name: Extract terraform archive
become: "{{ ext_become }}"
ansible.builtin.unarchive:
dest: "{{ path.archive }}/terraform"
src: "{{ d_tempdir.path }}/{{ terraform.file }}"
remote_src: true

View File

@@ -3,5 +3,5 @@
- name: Set carapace config
ansible.builtin.set_fact:
carapace:
pkgs: "{{ pkgconfig.carapace.pkgs[ansible_system] }}"
pkgs: "{{ pkgconfig.carapace.pkgs[ansible_os_family] }}"
repo: "{{ pkgconfig.carapace.repo[ansible_os_family] }}"

View File

@@ -4,6 +4,6 @@
ansible.builtin.set_fact:
neovide:
name: neovide
deps: "{{ pkgconfig.neovide.build_deps[ansible_os_family] }}"
build_deps: "{{ pkgconfig.neovide.build_deps[ansible_os_family] }}"
vers: "{{ pkgconfig.neovide.version }}"
locked: true

View File

@@ -2,4 +2,4 @@
- name: Set python3 config
ansible.builtin.set_fact:
python3:
pkgs: "{{ pkgconfig.python3.pkgs[ansible_system] }}"
pkgs: "{{ pkgconfig.python3.pkgs[ansible_os_family] }}"

View File

@@ -3,4 +3,4 @@
- name: Set rust config
ansible.builtin.set_fact:
rust:
pkgs: "{{ pkgconfig.rust.pkgs[ansible_system] }}"
pkgs: "{{ pkgconfig.rust.pkgs[ansible_os_family] }}"

View File

@@ -1,4 +1,17 @@
- name: Set terraform install method
ansible.builtin.set_fact:
terraform:
method: "{{ pkgconfig.terraform.method[ansible_os_family] | default(pkgconfig.terraform.method.default) }}"
- name: Set terraform config
ansible.builtin.set_fact:
terraform:
method: "{{ terraform.method }}"
pkgs: "{{ pkgconfig.terraform.pkgs[ansible_system] }}"
- name: Set terraform archive config
ansible.builtin.set_fact:
terraform:
method: "{{ terraform.method }}"
url: "{{ pkgconfig.terraform.baseurl }}/terraform/{{ pkgconfig.terraform.version }}"
file: "terraform_{{ pkgconfig.terraform.version }}_linux_amd64.zip"

View File

@@ -1,4 +1,4 @@
- name: Set tidy config
ansible.builtin.set_fact:
tidy:
pkgs: "{{ pkgconfig.tidy.pkgs[ansible_system] }}"
pkgs: "{{ pkgconfig.tidy.pkgs[ansible_os_family] }}"

View File

@@ -8,14 +8,19 @@
ansible.builtin.include_tasks:
file: config/neovide.yml
- name: Append neovide to pkg_sys and pkg_cargo
- name: Linux based neovide install
when:
- ansible_system == 'Linux'
block:
- name: Append neovide build_deps to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + neovide.deps }}"
- name: Append neovide to pkg_cargo
notify:
- Depend cargo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + neovide.deps }}"
pkg_cargo: "{{ pkg_cargo + [neovide] }}"
- name: Append neovide to pkg_cask

View File

@@ -7,7 +7,6 @@
- name: Append pandoc to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['pandoc'] }}"
- name: Set pandoc_configured
ansible.builtin.set_fact:
pandoc_configured: true

View File

@@ -1,14 +1,6 @@
# vim: set filetype=yaml.ansible :
---
- ansible.builtin.set_fact:
neovide_cargoversioned:
name: neovide
version: "{{ pkgconfig_neovide.version }}"
path: "{{ pkgconfig_neovide.install_prefix }}"
- ansible.builtin.set_fact:
cargoversioned: "{{ cargoversioned + [neovide_cargoversioned] }}"
- name: ensure directories exist
- name: Ensure directories exist
ansible.builtin.file:
state: directory
path: "{{ pkgconfig_neovide.install_prefix }}/{{ _dir }}"

View File

@@ -1,15 +1,9 @@
# vim: set filetype=yaml.ansible :
---
- name: Create temp path
ansible.builtin.tempfile:
state: directory
prefix: nvim.
register: d_nvim_tmp
- name: Clone neovim git repository
ansible.builtin.git:
depth: 1
dest: "{{ d_nvim_tmp.path }}/neovim"
dest: "{{ d_tempdir.path }}/neovim"
repo: "{{ pkgconfig_neovim.git_repo }}"
version: "{{ pkgconfig_neovim.version }}"

View File

@@ -13,7 +13,7 @@ hyprcursor:
- cairo-dev
- libzip-dev
- librsvg-dev
- tomlpluplus-dev
- tomlplusplus-dev
build_installed_files:
- lib64/libhyprcursor.so.0.1.11
- lib64/libhyprcursor.so.0

View File

@@ -3,6 +3,7 @@ libreoffice:
default: sys
Ubuntu: flatpak
Fedora: flatpak
Alpine: flatpak
MacOSX: cask
flatpak:
name: org.libreoffice.LibreOffice

View File

@@ -6,9 +6,26 @@ neovim:
link_name: nvim
methods:
default: src
Alpine: src
Fedora: sys
Ubuntu: sys
MacOSX: sys
pkgs:
default:
- neovim
build_deps:
RedHat: []
Debian: []
Darwin: []
Alpine:
- build-base
- cmake
- libuv-dev
- libuv
- libluv
- lua-luv-dev
- utf8proc-dev
- luajit-dev
- luajit
- lua-lpeg-dev
- unibilium-dev

View File

@@ -2,6 +2,12 @@ python3:
pkgs:
Darwin:
- python3
Linux:
RedHat:
- python3
- python3-pip
Debian:
- python3
- python3-pip
Alpine:
- python3
- py3-pip

View File

@@ -2,6 +2,12 @@ rust:
pkgs:
Darwin:
- rust
Linux:
Debian:
- rustc
- cargo
RedHat:
- rustc
- cargo
Alpine:
- rust
- cargo

View File

@@ -1,4 +1,10 @@
terraform:
version: 1.11.1
archive:
baseurl: https://releases.hashicorp.com
method:
default: sys
Alpine: archive
pkgs:
Linux:
- terraform

View File

@@ -2,5 +2,9 @@ tidy:
pkgs:
Darwin:
- tidy-html5
Linux:
Alpine:
- tidyhtml
Debian:
- tidy
RedHat:
- tidy