move a lot of configuration around
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Build and install alacritty
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
creates: "{{ pkgconfig_alacritty.install_prefix }}/bin/alacritty"
|
||||
cmd:
|
||||
- cargo
|
||||
- install
|
||||
- --root
|
||||
- "{{ pkgconfig_alacritty.install_prefix }}"
|
||||
- --git
|
||||
- "{{ pkgconfig_alacritty.git_repo }}"
|
||||
- --tag
|
||||
- "v{{ pkgconfig_alacritty.version }}"
|
||||
@@ -1,33 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Build ghostty from source
|
||||
block:
|
||||
- name: Create temp path
|
||||
ansible.builtin.tempfile:
|
||||
state: directory
|
||||
prefix: ghostty.
|
||||
register: d_ghostty_tmp
|
||||
|
||||
- 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
|
||||
ansible.builtin.command:
|
||||
chdir: "{{ d_ghostty_tmp.path }}/ghostty"
|
||||
cmd: "zig build -D{{ pkgconfig_ghostty.optimize }}"
|
||||
register: c_ghostty_build
|
||||
|
||||
- name: Install ghostty
|
||||
ansible.file.copy:
|
||||
src: "{{ d_ghostty_tmp.path }}/ghostty/zig-out/bin/ghostty"
|
||||
dest: "{{ pkgconfig_ghostty.install_prefix }}/bin/ghostty"
|
||||
owner: "{{ pkgconfig_ghostty.owner }}"
|
||||
group: "{{ pkgconfig_ghostty.group }}"
|
||||
mode: "0755"
|
||||
remote_src: true
|
||||
become: "{{ pkgconfig_ghostty.become }}"
|
||||
become_user: "{% if pkgconfig_ghostty.become %}{{ pkgconfig_ghostty.owner }}{% else %}~{% endif %}"
|
||||
@@ -1,52 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: check go version
|
||||
ansible.builtin.command:
|
||||
cmd: "go version"
|
||||
register: r_go_version
|
||||
ignore_errors: true
|
||||
|
||||
- name: install/update go
|
||||
block:
|
||||
- name: set go arch
|
||||
ansible.builtin.set_fact:
|
||||
arch: "{{ pkgconfig_go.archmap[ansible_architecture] }}"
|
||||
|
||||
- name: set go archive filename
|
||||
ansible.builtin.set_fact:
|
||||
go_archive: "go{{ pkgconfig_go.version }}.{{ ansible_system | lower }}-{{ arch }}.{{ pkgconfig_go.extmap[ansible_system] }}"
|
||||
|
||||
- name: create temp path
|
||||
ansible.builtin.tempfile:
|
||||
state: directory
|
||||
prefix: go_dl.
|
||||
register: d_go_dl_tmp
|
||||
|
||||
- name: download go archive
|
||||
become: true
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_go_dl_tmp.path }}/{{ go_archive }}"
|
||||
url: "https://go.dev/dl/{{ go_archive }}"
|
||||
checksum: "{{ pkgconfig_go.sums[pkgconfig_go.version][ansible_system][arch] }}"
|
||||
decompress: false
|
||||
|
||||
- name: ensure go install dir exists
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ pkgconfig_go.install_path }}"
|
||||
state: directory
|
||||
|
||||
- name: extract go package
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ pkgconfig_go.install_path }}"
|
||||
src: "{{ d_go_dl_tmp.path }}/{{ go_archive }}"
|
||||
remote_src: true
|
||||
when: ansible_system == 'Linux'
|
||||
become: true
|
||||
|
||||
- name: install go macOS use pkg file
|
||||
ansible.builtin.command:
|
||||
cmd: "installer -pkg {{ d_go_dl_tmp.path }}/{{ go_archive }} -target /"
|
||||
when: ansible_system == 'Darwin'
|
||||
become: true
|
||||
when: pkgconfig_go.version not in r_go_version.stdout
|
||||
@@ -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
|
||||
@@ -1,32 +0,0 @@
|
||||
# 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
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ pkgconfig_neovide.install_prefix }}/{{ _dir }}"
|
||||
become: true
|
||||
loop:
|
||||
- share/icons
|
||||
- share/applications
|
||||
loop_control:
|
||||
loop_var: _dir
|
||||
|
||||
- name: Copy neovide icon
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: neovide/icon.png
|
||||
dest: "{{ pkgconfig_neovide.install_prefix }}/share/icons/neovide.png"
|
||||
|
||||
- name: Copy neovide.desktop
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: neovide/neovide.desktop
|
||||
dest: "{{ pkgconfig_neovide.install_prefix }}/share/applications/neovide.desktop"
|
||||
@@ -1,55 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: build neovim from source
|
||||
block:
|
||||
- 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"
|
||||
repo: "{{ pkgconfig_neovim.git_repo }}"
|
||||
version: "{{ pkgconfig_neovim.version }}"
|
||||
|
||||
- name: build and install neovim
|
||||
ansible.builtin.make:
|
||||
chdir: "{{ d_nvim_tmp.path }}/neovim"
|
||||
params:
|
||||
CMAKE_BUILD_TYPE: "{{ pkgconfig_neovim.build_type }}"
|
||||
CMAKE_INSTALL_PREFIX: "{{ pkgconfig_neovim.install_prefix }}"
|
||||
target: install
|
||||
become: "{{ pkgconfig_neovim.dobecome }}"
|
||||
become_user: "{% if pkgconfig_neovim.dobecome %}{{ pkgconfig_neovim.owner }}{% else %}~{% endif %}"
|
||||
when: not pkgconfig_neovim.use_appimage
|
||||
|
||||
- name: install neovim appimage
|
||||
block:
|
||||
- ansible.builin.file:
|
||||
state: directory
|
||||
mode: "0755"
|
||||
path: "{{ pkgconfig_neovim.install_dir }}"
|
||||
owner: "{{ pkgconfig_neovim.owner }}"
|
||||
group: "{{ pkgconfig_neovim.group }}"
|
||||
|
||||
- ansible.builtin.get_url:
|
||||
mode: "0755"
|
||||
decompress: false
|
||||
backup: true
|
||||
url: "{{ pkgconfig_neovim.appimage_url_pfx }}/{{ pkgconfig_neovim.version }}/nvim.appimage"
|
||||
checksum: "sha256:{{ pkgconfig_neovim.appimage_url_pfx }}/{{ pkgconfig_neovim.version }}/nvim.appimage.sha256sum"
|
||||
dest: "{{ pkgconfig_neovim.install_dir }}/nvim.appimage.{{ pkgconfig_neovim.version }}"
|
||||
owner: "{{ pkgconfig_neovim.owner }}"
|
||||
group: "{{ pkgconfig_neovim.group }}"
|
||||
|
||||
- ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ pkgconfig_neovim.install_dir }}/nvim.appimage.{{ pkgconfig_neovim.version }}"
|
||||
path: "{{ pkgconfig_neovim.install_prefix }}/bin/nvim"
|
||||
when:
|
||||
- pkgconfig_neovim.use_appimage
|
||||
become: "{{ pkgconfig_neovim.dobecome }}"
|
||||
become_user: "{% if pkgconfig_neovim.dobecome %}{{ pkgconfig_neovim.owner }}{% else %}~{% endif %}"
|
||||
@@ -1,37 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
# Install nerdfonts for each platform
|
||||
---
|
||||
- name: linux installation
|
||||
when: ansible_system == 'Linux'
|
||||
block:
|
||||
- name: set install path for non-system installs
|
||||
ansible.builtin.set_fact:
|
||||
nerdfonts_install_path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.local/share/fonts"
|
||||
when: not pkgconfig_nerdfonts.system_install
|
||||
|
||||
- name: set install path for system wide installs
|
||||
ansible.builtin.set_fact:
|
||||
nerdfonts_install_path: "/usr/local/share/fonts"
|
||||
when: pkgconfig_nerdfonts.system_install
|
||||
|
||||
- name: create nerdfonts directories
|
||||
ansible.builtin.file:
|
||||
path: "{{ nerdfonts_install_path }}/{{ font }}"
|
||||
state: directory
|
||||
become: "{{ pkgconfig_nerdfonts.system_install }}"
|
||||
loop: "{{ pkgconfig_nerdfonts.install }}"
|
||||
loop_control:
|
||||
loop_var: font
|
||||
register: nerdfont_result
|
||||
|
||||
- name: Download and extract nerdfonts
|
||||
ansible.builtin.unarchive:
|
||||
creates: "{{ nerdfonts_install_path }}/{{ font }}/README.md"
|
||||
src: "{{ pkgconfig_nerdfonts.base_url }}/{{ font }}.tar.xz"
|
||||
dest: "{{ nerdfonts_install_path }}/{{ font }}"
|
||||
remote_src: true
|
||||
when: nerdfont_result is changed
|
||||
become: nerdfonts_system_install
|
||||
loop: "{{ pkgconfig_nerdfonts.install }}"
|
||||
loop_control:
|
||||
loop_var: font
|
||||
@@ -1,19 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- ansible.builtin.include_vars:
|
||||
file: nushell.yml
|
||||
name: _nushell
|
||||
|
||||
- name: install nushell via cargo
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
cmd:
|
||||
- cargo
|
||||
- install
|
||||
- --root
|
||||
- "{{ _nushell.install_prefix }}"
|
||||
- "{{ nuitem }}"
|
||||
- --locked
|
||||
loop_control:
|
||||
loop_var: nuitem
|
||||
loop: "{{ _nushell.nu_pkgs_list }}"
|
||||
@@ -1,46 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: download zig archive
|
||||
ansible.builtin.set_fact:
|
||||
zig_path: "zig-{{ pkgconfig_zig.sysmap[ansible_system] }}-{{ pkgconfig_zig.archmap[ansible_architecture] }}-{{ pkgconfig_zig.version }}"
|
||||
zig_pkg: "zig-{{ pkgconfig_zig.sysmap[ansible_system] }}-{{ pkgconfig_zig.archmap[ansible_architecture] }}-{{ pkgconfig_zig.version }}.tar.xz"
|
||||
|
||||
- name: check if zig {{ pkgconfig_zig.version }} exists
|
||||
ansible.builtin.stat:
|
||||
path: "{{ pkgconfig_zig.install_path }}/{{ zig_path }}/zig"
|
||||
register: r_zig_stat
|
||||
|
||||
- name: update/install zig
|
||||
block:
|
||||
- name: create temp path
|
||||
ansible.builtin.tempfile:
|
||||
state: directory
|
||||
prefix: zig_dl.
|
||||
register: d_zig_dl_tmp
|
||||
|
||||
- name: download zig archive
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_zig_dl_tmp.path }}/{{ zig_pkg }}"
|
||||
url: "{{ pkgconfig_zig.base_url }}/{{ pkgconfig_zig.version }}/{{ zig_pkg }}"
|
||||
decompress: false
|
||||
|
||||
- name: create install_path
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ pkgconfig_zig.install_path }}"
|
||||
become: true
|
||||
|
||||
- name: extract zig package
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ pkgconfig_zig.install_path }}"
|
||||
src: "{{ d_zig_dl_tmp.path }}/{{ zig_pkg }}"
|
||||
remote_src: true
|
||||
become: true
|
||||
|
||||
- name: link zig binary
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ pkgconfig_zig.install_path }}/{{ zig_path }}/zig"
|
||||
path: "{{ pkgconfig_zig.install_prefix }}/bin/zig"
|
||||
become: true
|
||||
when: not r_zig_stat.stat.exists
|
||||
@@ -1,46 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: download zls archive
|
||||
ansible.builtin.set_fact:
|
||||
zls_path: "zls-{{ pkgconfig_zls.sysmap[ansible_system] }}-{{ pkgconfig_zls.archmap[ansible_architecture] }}-{{ pkgconfig_zls.version }}"
|
||||
zls_pkg: "zls-{{ pkgconfig_zls.sysmap[ansible_system] }}-{{ pkgconfig_zls.archmap[ansible_architecture] }}-{{ pkgconfig_zls.version }}.tar.xz"
|
||||
|
||||
- name: check if zls {{ pkgconfig_zls.version }} exists
|
||||
ansible.builtin.stat:
|
||||
path: "{{ pkgconfig_zls.install_path }}/{{ zls_path }}/zls"
|
||||
register: r_zls_stat
|
||||
|
||||
- name: update/install zls
|
||||
block:
|
||||
- name: create temp path
|
||||
ansible.builtin.tempfile:
|
||||
state: directory
|
||||
prefix: zls_dl.
|
||||
register: d_zls_dl_tmp
|
||||
|
||||
- name: download zls archive
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_zls_dl_tmp.path }}/{{ zls_pkg }}"
|
||||
url: "{{ pkgconfig_zls.base_url }}/{{ zls_pkg }}"
|
||||
decompress: false
|
||||
|
||||
- name: create install_path
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ pkgconfig_zls.install_path }}/{{ zls_path }}"
|
||||
become: true
|
||||
|
||||
- name: extract zls package
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ pkgconfig_zls.install_path }}/{{ zls_path }}"
|
||||
src: "{{ d_zls_dl_tmp.path }}/{{ zls_pkg }}"
|
||||
remote_src: true
|
||||
become: true
|
||||
|
||||
- name: link zls binary
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ pkgconfig_zls.install_path }}/{{ zls_path }}/zls"
|
||||
path: "{{ pkgconfig_zls.install_prefix }}/bin/zls"
|
||||
become: true
|
||||
when: not r_zls_stat.stat.exists
|
||||
Reference in New Issue
Block a user