change layout for better management
- instead of just `syspkgs` and `srcpkgs` add more lists - `appimages`, `flatpkgs` and others as they come up
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: build and install alacritty
|
||||
- name: Build and install alacritty
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ pkgconfig_alacritty.install_prefix }}/bin/alacritty"
|
||||
cmd:
|
||||
- cargo
|
||||
- install
|
||||
@@ -11,4 +13,3 @@
|
||||
- "{{ pkgconfig_alacritty.git_repo }}"
|
||||
- --tag
|
||||
- "v{{ pkgconfig_alacritty.version }}"
|
||||
become: true
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Install bitwarden appimage
|
||||
blocK:
|
||||
- ansible.builtin.file:
|
||||
state: directory
|
||||
mode: '0755'
|
||||
path: "{{ pkgconfig_bitwarden.install_dir }}"
|
||||
owner: "{{ pkgconfig_bitwarden.owner }}"
|
||||
group: "{{ pkgconfig_bitwarden.group }}"
|
||||
|
||||
- ansible.builtin.get_url:
|
||||
mode: '0755'
|
||||
decompress: false
|
||||
backup: true
|
||||
url: "https://vault.bitwarden.com/download/?app=desktop&platform=linux&variant=appimage"
|
||||
dset: "{{ pkgconfig_bitwarden.install_dir }}/bitwarden.appimage"
|
||||
owner: "{{ pkgconfig_bitwarden.owner }}"
|
||||
group: "{{ pkgconfig_bitwarden.group }}"
|
||||
|
||||
- ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ pkgconfig_bitwarden.install_dir }}/bitwarden.appimage"
|
||||
path: "{{ pkgconfig_bitwarden.install_prefix }}/bin/bitwarden"
|
||||
when:
|
||||
- pkgconfig_bitwarden.use_appimage
|
||||
beocome: "{{ pkgconfig_bitwarden.dobecome }}"
|
||||
become_user: "{% if pkgconfig_bitwarden.dobecome %}{{ pkgconfig_bitwarden.owner }}{% else %}~{% endif %}"
|
||||
@@ -1,27 +1,27 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: build ghostty from source
|
||||
- name: Build ghostty from source
|
||||
block:
|
||||
- name: create temp path
|
||||
- name: Create temp path
|
||||
ansible.builtin.tempfile:
|
||||
state: directory
|
||||
prefix: ghostty.
|
||||
register: d_ghostty_tmp
|
||||
|
||||
- name: clone ghostty git repository
|
||||
- name: Clone ghostty git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ d_ghostty_tmp.path }}/ghostty"
|
||||
repo: "{{ pkgconfig_ghostty.git_repo }}"
|
||||
version: "{{ pkgconfig_ghostty.version }}"
|
||||
|
||||
- name: build ghostty
|
||||
- name: Build ghostty
|
||||
ansible.builtin.command:
|
||||
chdir: "{{ d_ghostty_tmp.path }}/ghostty"
|
||||
cmd: "zig build -D{{ pkgconfig_ghostty.optimize }}"
|
||||
register: c_ghostty_build
|
||||
|
||||
- name: install ghostty
|
||||
- name: Install ghostty
|
||||
ansible.file.copy:
|
||||
src: "{{ d_ghostty_tmp.path }}/ghostty/zig-out/bin/ghostty"
|
||||
dest: "{{ pkgconfig_ghostty.install_prefix }}/bin/ghostty"
|
||||
|
||||
@@ -2,11 +2,20 @@
|
||||
---
|
||||
- name: Set needed variables lua language server
|
||||
ansible.builtin.set_fact:
|
||||
luals_pkg: "lua-language-server-{{ pkgconfig_luals.version }}-{{ pkgconfig_luals.sysmap[ansible_system] }}-{{ pkgconfig_luals.archmap[ansible_architecture] }}.tar.gz"
|
||||
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: "{{ pkgconfig_luals.install_path }}/bin/lua-language-server"
|
||||
path: "{{ luals_instpath }}/bin/lua-language-server"
|
||||
register: r_luals_stat
|
||||
|
||||
- name: Install lua-language-server
|
||||
@@ -21,20 +30,20 @@
|
||||
- name: Get latest lua-language-server
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_luals_dl_tmp.path }}/{{ luals_pkg }}"
|
||||
url: "{{ pkgconfig_luals.base_url }}/{{ pkgconfig_luals.version }}/{{ luals_pkg }}"
|
||||
url: "{{ luals_burl }}/{{ luals_ver }}/{{ luals_pkg }}"
|
||||
mode: "0644"
|
||||
decompress: false
|
||||
|
||||
- name: Create install_path
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ pkgconfig_luals.install_path }}"
|
||||
path: "{{ luals_instpath }}"
|
||||
mode: "0755"
|
||||
become: true
|
||||
|
||||
- name: Extract lua language server archive
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ pkgconfig_luals.install_path }}"
|
||||
dest: "{{ luals_instpath }}"
|
||||
src: "{{ d_luals_dl_tmp.path }}/{{ luals_pkg }}"
|
||||
remote_src: true
|
||||
become: true
|
||||
@@ -42,6 +51,6 @@
|
||||
- name: Link lua language server binary
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ pkgconfig_luals.install_path }}/bin/lua-language-server"
|
||||
path: "{{ pkgconfig_luals.install_prefix }}/bin/lua-language-server"
|
||||
src: "{{ luals_instpath }}/bin/lua-language-server"
|
||||
path: "{{ luals_instpfx }}/bin/lua-language-server"
|
||||
become: true
|
||||
|
||||
Reference in New Issue
Block a user