more fixs for packages

This commit is contained in:
Matthew Stobbs
2025-02-20 15:03:54 -07:00
parent c0400949c3
commit 41b1acc067
34 changed files with 181 additions and 201 deletions

View File

@@ -1,7 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Build and install alacritty
become: "{{ not use_local }}"
ansible.builtin.command:
creates: "{{ alacritty.bin }}"
cmd: "cargo install --root {{ paths.cargo }} alacritty@{{ alacritty.ver }}"

View File

@@ -1,56 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: Set needed variables lua language server
ansible.builtin.set_fact:
luals_sys: pkgconfig_luals.sysmap[ansible_system]
luals_arch: pkgconfig_luals.archmap[ansible_architecture]
luals_ver: pkgconfig_luals.version
luals_instpath: pkgconfig_luals.install_path
luals_instpfx: pkgconfig_luals.install_prefix
luals_burl: pkgconfig_luals.base_url
- name: Set luals archive name
ansible.builtin.set_fact:
luals_pkg: "lua-language-server-{{ luals_ver }}-{{ lualsl_sys }}-{{ luals_arch }}.tar.gz"
- name: Check if lua language server is already installed
ansible.builtin.stat:
path: "{{ luals_instpath }}/bin/lua-language-server"
register: r_luals_stat
- name: Install lua-language-server
when: not r_luals_stat.stat.exists
block:
- name: Create temp path
ansible.builtin.tempfile:
state: directory
prefix: luals_dl.
register: d_luals_dl_tmp
- name: Get latest lua-language-server
ansible.builtin.get_url:
dest: "{{ d_luals_dl_tmp.path }}/{{ luals_pkg }}"
url: "{{ luals_burl }}/{{ luals_ver }}/{{ luals_pkg }}"
mode: "0644"
decompress: false
- name: Create install_path
ansible.builtin.file:
state: directory
path: "{{ luals_instpath }}"
mode: "0755"
become: true
- name: Extract lua language server archive
ansible.builtin.unarchive:
dest: "{{ luals_instpath }}"
src: "{{ d_luals_dl_tmp.path }}/{{ luals_pkg }}"
remote_src: true
become: true
- name: Link lua language server binary
ansible.builtin.file:
state: link
src: "{{ luals_instpath }}/bin/lua-language-server"
path: "{{ luals_instpfx }}/bin/lua-language-server"
become: true