adding more alpine specific build_deps

This commit is contained in:
Matthew Stobbs
2025-03-20 21:56:33 -06:00
parent ba54af35e6
commit 40e9e97cce
11 changed files with 88 additions and 13 deletions

View File

@@ -1,10 +1,21 @@
# vim: set filetype=yaml.ansible :
---
- name: Set facts for installation
- name: Set path prefix
ansible.builtin.set_fact:
path:
prefix: "{{ path.prefix | default(defaults.path.prefix) }}"
- name: Set install variables
ansible.builtin.set_fact:
ext_become: "{{ not use_local }}"
path:
prefix: "{% if use_local %}{{ lookup('ansible.builtin.env', 'HOME') }}/.local{% else %}{{ defaults.path.prefix }}{% endif %}"
prefix: "{{ path.prefix }}"
appimage: "{{ path.appimage | default(path.prefix ~ defaults.path.suffix.appimage) }}"
archive: "{{ path.archive | default(path.prefix ~ defaults.path.suffix.archive) }}"
bin: "{{ path.bin | default(path.prefix ~ defaults.path.suffix.bin) }}"
cargo: "{{ path.cargo | default(path.prefix ~ defaults.path.suffix.cargo) }}"
go: "{% if ansible_distribution == 'MacOSX' %}/usr/local/go{% else %}{{ path.go | default(path.prefix ~ defaults.path.suffix.go) }}{% endif %}"
pipx: "{{ path.pipx | default(path.prefix ~ defaults.path.suffix.pipx) }}"
- name: Set Linux specific facts
when:
@@ -46,17 +57,6 @@
sys_pkg_become: false # homebrew doesn't require sudo access
lib_path: lib
- name: Set paths
ansible.builtin.set_fact:
path:
prefix: "{{ path.prefix }}"
appimage: "{{ path.appimage | default(path.prefix ~ defaults.path.suffix.appimage) }}"
archive: "{{ path.archive | default(path.prefix ~ defaults.path.suffix.archive) }}"
bin: "{{ path.bin | default(path.prefix ~ defaults.path.suffix.bin) }}"
cargo: "{{ path.cargo | default(path.prefix ~ defaults.path.suffix.cargo) }}"
go: "{% if ansible_distribution == 'MacOSX' %}/usr/local/go{% else %}{{ path.go | default(path.prefix ~ defaults.path.suffix.go) }}{% endif %}"
pipx: "{{ path.pipx | default(path.prefix ~ defaults.path.suffix.pipx) }}"
- name: Set OS independant facts
ansible.builtin.set_fact:
pkg_archive: [] # packages installed via prebuilt archive

View File

@@ -13,6 +13,30 @@
ansible.builtin.include_tasks:
file: facts.yml
- name: Dump paths
when:
- debug
ansible.builtin.debug:
msg: "{{ path | dict2items }}"
- name: Dump vars
when:
- debug
ansible.builtin.debug:
var: ext_become
- name: Dump use_local
when:
- debug
ansible.builtin.debug:
var: use_local
- name: Dump packages
when:
- debug
ansible.builtin.debug:
var: packages
- name: Ensure required path exist
become: "{{ ext_become }}"
loop: "{{ path | dict2items }}"