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,15 +8,20 @@
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'
notify:
- Depend cargo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + neovide.deps }}"
pkg_cargo: "{{ pkg_cargo + [neovide] }}"
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_cargo: "{{ pkg_cargo + [neovide] }}"
- name: Append neovide to pkg_cask
when:

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 }}"