Squash merge move_to_single_file_pkgs into main
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: "Add include task for {{ pkg }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ pkg }}.yml"
|
||||
@@ -1,26 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Install appimage {{ pkg }}
|
||||
become: "{{ ext_become }}"
|
||||
block:
|
||||
- name: Ensure appimage path exists
|
||||
ansible.builtin.file:
|
||||
path: "{{ path.appimage }}/{{ pkg.link_name }}"
|
||||
mode: '0755'
|
||||
state: directory
|
||||
|
||||
- name: Fetch appimage
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.get_url:
|
||||
mode: '0755'
|
||||
decompress: false
|
||||
backup: true
|
||||
url: "{{ pkg.url }}"
|
||||
dest: "{{ path.appimage }}/{{ pkg.link_name }}/{{ pkg.file }}"
|
||||
|
||||
- name: Link appimage to bin
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ path.appimage }}/{{ pkg.link_name }}/{{ pkg.file }}"
|
||||
path: "{{ path.bindir }}/{{ pkg.link_name }}"
|
||||
@@ -1,29 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Install neovim appimage
|
||||
become: true
|
||||
block:
|
||||
- name: Create install dir
|
||||
ansible.builin.file:
|
||||
state: directory
|
||||
mode: "0755"
|
||||
path: "{{ nvim.instdir }}"
|
||||
owner: "{{ pkgconfig_neovim.owner }}"
|
||||
group: "{{ pkgconfig_neovim.group }}"
|
||||
|
||||
- name: Get neovim appimage
|
||||
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 }}"
|
||||
|
||||
- name: Link neovim appimage
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ pkgconfig_neovim.install_dir }}/nvim.appimage.{{ pkgconfig_neovim.version }}"
|
||||
path: "{{ pkgconfig_neovim.install_prefix }}/bin/nvim"
|
||||
@@ -1,59 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Check if go is already installed
|
||||
ansible.builtin.stat:
|
||||
path: "{{ path.go }}/bin/go"
|
||||
register: stat_path_go
|
||||
|
||||
- name: Check installed go version
|
||||
when:
|
||||
- stat_path_go.stat.exists
|
||||
block:
|
||||
- name: Get installed version
|
||||
register: r_go_version
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- "{{ path.go }}/bin/go"
|
||||
- version
|
||||
|
||||
- name: Check if go needs updating
|
||||
ansible.builtin.set_fact:
|
||||
go_do_update: "{{ r_go_version.stdout.find(go.vers) == -1 }}"
|
||||
|
||||
- name: Install/update go
|
||||
when:
|
||||
- not stat_path_go.stat.exists or
|
||||
go_do_update
|
||||
block:
|
||||
- name: Remove existing go install
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ path.go }}"
|
||||
|
||||
- name: Download go archive
|
||||
register: get_url_go
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_tempdir.path }}/{{ go.archive }}"
|
||||
url: "{{ go.base_url }}/{{ go.archive }}"
|
||||
checksum: "{{ go.sum }}"
|
||||
decompress: false
|
||||
mode: '0644'
|
||||
|
||||
- name: Extract go package for Linux
|
||||
become: "{{ ext_become }}"
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ go.prefix }}"
|
||||
src: "{{ d_tempdir.path }}/{{ go.archive }}"
|
||||
remote_src: true
|
||||
|
||||
- name: Install go macOS using pkg file
|
||||
become: true
|
||||
when:
|
||||
- ansible_distribution == 'MacOSX'
|
||||
ansible.builtin.command:
|
||||
cmd: "installer -pkg {{ d_tempdir.path }}/{{ go.archive }} -target {{ go.prefix }}"
|
||||
@@ -1,30 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Get latest lua-language-server
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_tempdir.path }}/{{ luals.archive }}"
|
||||
url: "{{ luals.url }}/{{ luals.archive }}"
|
||||
mode: "0644"
|
||||
decompress: false
|
||||
|
||||
- name: Create install_path
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ path.archive }}/luals"
|
||||
mode: "0755"
|
||||
|
||||
- name: Extract lua language server archive
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ path.archive }}/luals"
|
||||
src: "{{ d_tempdir.path }}/{{ luals.archive }}"
|
||||
remote_src: true
|
||||
|
||||
- name: Link lua language server binary
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
path: "{{ path.bin }}/lua-language-server"
|
||||
src: "{{ path.archive }}/luals/bin/lua-language-server"
|
||||
@@ -1,29 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Linux installation
|
||||
when: ansible_system == 'Linux'
|
||||
block:
|
||||
- name: Create nerdfonts directories
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ nerdfonts.fonts }}"
|
||||
loop_control:
|
||||
loop_var: font
|
||||
register: nerdfont_result
|
||||
ansible.builtin.file:
|
||||
path: "{{ path.prefix }}/{{ nerdfonts.path }}/{{ font }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Download and extract nerdfonts
|
||||
when:
|
||||
- nerdfont_result is changed or
|
||||
nerdfonts.force_install
|
||||
become: "{{ ext_become }}"
|
||||
loop: "{{ nerdfonts.fonts }}"
|
||||
loop_control:
|
||||
loop_var: font
|
||||
ansible.builtin.unarchive:
|
||||
creates: "{{ path.prefix }}/{{ nerdfonts.path }}/{{ font }}/README.md"
|
||||
src: "{{ nerdfonts.base_url }}/{{ pkgconfig.nerdfonts.fonts[font].archive | default(font) }}.tar.xz"
|
||||
dest: "{{ path.prefix }}/{{ nerdfonts.path }}/{{ font }}"
|
||||
remote_src: true
|
||||
@@ -1,15 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Download packer archive
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_tempdir.path }}/{{ packer.archive.file }}"
|
||||
url: "{{ packer.archive.url }}/{{ packer.archive.file }}"
|
||||
decompress: false
|
||||
mode: '0644'
|
||||
|
||||
- name: Extract packer archive
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ path.archive }}/packer"
|
||||
src: "{{ d_tempdir.path }}/{{ packer.archive.file }}"
|
||||
remote_src: true
|
||||
@@ -1,31 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Check if pulumi is installed
|
||||
register: stat_pulumi_inst
|
||||
ansible.builtin.stat:
|
||||
path: "{{ path.bin }}/pulumi"
|
||||
|
||||
- name: Install pulumi if not installed
|
||||
when:
|
||||
- not stat_pulumi_inst.stat.exists
|
||||
block:
|
||||
- name: Download pulumi archive
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_tempdir.path }}/{{ pulumi.archive }}"
|
||||
url: "{{ pulumi.dlurl }}"
|
||||
decompress: false
|
||||
mode: '0644'
|
||||
|
||||
- name: Extract pulumi archive
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ path.archive }}"
|
||||
src: "{{ d_tempdir.path }}/{{ pulumi.archive }}"
|
||||
remote_src: true
|
||||
|
||||
- name: Link pulumi executable
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ path.archive }}/pulumi/pulumi"
|
||||
path: "{{ path.bin }}/pulumi"
|
||||
@@ -1,38 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Check if terraform is already installed
|
||||
register: r_terraform_inst
|
||||
ansible.builtin.stat:
|
||||
path: "{{ terraform.bin }}"
|
||||
|
||||
- name: Download and install terraform
|
||||
when:
|
||||
- not r_terraform_inst.stat.exists
|
||||
block:
|
||||
- name: Download terraform archive
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_tempdir.path }}/{{ terraform.archive }}"
|
||||
url: "{{ terraform.url }}/{{ terraform.archive }}"
|
||||
mode: '0644'
|
||||
decompress: false
|
||||
|
||||
- name: Ensure vault archive dir exists
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ terraform.path }}"
|
||||
mode: '0755'
|
||||
|
||||
- name: Extract terraform archive
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ terraform.path }}"
|
||||
src: "{{ d_tempdir.path }}/{{ terraform.archive }}"
|
||||
remote_src: true
|
||||
|
||||
- name: Link terraform executable
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ terraform.path }}/terraform"
|
||||
path: "{{ terraform.bin }}"
|
||||
@@ -1,38 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Check if vault is already installed
|
||||
register: r_vault_inst
|
||||
ansible.builtin.stat:
|
||||
path: "{{ vault.bin }}"
|
||||
|
||||
- name: Download and install vault
|
||||
when:
|
||||
- not r_vault_inst.stat.exists
|
||||
block:
|
||||
- name: Download vault archive
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_tempdir.path }}/{{ vault.archive }}"
|
||||
url: "{{ vault.url }}/{{ vault.archive }}"
|
||||
mode: '0644'
|
||||
decompress: false
|
||||
|
||||
- name: Ensure vault archive dir exists
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ vault.path }}"
|
||||
mode: '0755'
|
||||
|
||||
- name: Extract vault archive
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ vault.path }}"
|
||||
src: "{{ d_tempdir.path }}/{{ vault.archive }}"
|
||||
remote_src: true
|
||||
|
||||
- name: Link vault executable
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ vault.path }}/vault"
|
||||
path: "{{ vault.bin }}"
|
||||
@@ -1,38 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Check if zig exists
|
||||
ansible.builtin.stat:
|
||||
path: "{{ path.archive }}/zig/{{ zig.path }}/zig"
|
||||
register: r_zig_stat
|
||||
|
||||
- name: Update/install zig
|
||||
when:
|
||||
- not r_zig_stat.stat.exists
|
||||
block:
|
||||
- name: Download zig archive
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_tempdir.path }}/{{ zig.pkg }}"
|
||||
url: "{{ zig.base_url }}/{{ zig.vers }}/{{ zig.pkg }}"
|
||||
decompress: false
|
||||
mode: '0644'
|
||||
|
||||
- name: Create zig archive dir
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
mode: '0755'
|
||||
path: "{{ path.archive }}/zig"
|
||||
|
||||
- name: Extract zig package
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ path.archive }}/zig"
|
||||
src: "{{ d_tempdir.path }}/{{ zig.pkg }}"
|
||||
remote_src: true
|
||||
|
||||
- name: Link zig binary
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ path.archive }}/zig/{{ zig.path }}/zig"
|
||||
path: "{{ path.bin }}/zig"
|
||||
@@ -1,37 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Check if zls exists
|
||||
ansible.builtin.stat:
|
||||
path: "{{ path.archive }}/zls/{{ zls.path }}/zls"
|
||||
register: r_zls_stat
|
||||
|
||||
- name: Update/install zls
|
||||
block:
|
||||
- name: Download zls archive
|
||||
register: get_url_zls
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_tempdir.path }}/{{ zls.pkg }}"
|
||||
url: "{{ zls.base_url }}/{{ zls.pkg }}"
|
||||
decompress: false
|
||||
mode: '0644'
|
||||
|
||||
- name: Create zls archive dir
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
mode: '0755'
|
||||
path: "{{ path.archive }}/zls/{{ zls.path }}"
|
||||
|
||||
- name: Extract zls package
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ path.archive }}/zls/{{ zls.path }}"
|
||||
src: "{{ d_tempdir.path }}/{{ zls.pkg }}"
|
||||
remote_src: true
|
||||
|
||||
- name: Link zls binary
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ path.archive }}/zls/{{ zls.path }}/zls"
|
||||
path: "{{ path.bin }}/zls"
|
||||
@@ -1,11 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible
|
||||
---
|
||||
- name: Install cargo {{ pkg }}
|
||||
become: "{{ ext_become }}"
|
||||
environment:
|
||||
RUSTONIG_SYSTEM_LIBONIG: 1
|
||||
community.general.cargo:
|
||||
name: "{{ pkg.name | default(pkg) }}"
|
||||
version: "{{ pkg.vers | default(omit) }}"
|
||||
path: "{{ path.cargo | default(path.prefix) }}"
|
||||
locked: "{{ pkg.locked | default(omit) }}"
|
||||
@@ -1,18 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set alacritty install method
|
||||
ansible.builtin.set_fact:
|
||||
alacritty:
|
||||
method: "{{ pkgconfig.alacritty.method[ansible_os_family] | default(pkgconfig.alacritty.method.default) }}"
|
||||
|
||||
- name: Set alacritty configuration
|
||||
when:
|
||||
- alacritty.method == 'cargo'
|
||||
ansible.builtin.set_fact:
|
||||
alacritty:
|
||||
method: "{{ alacritty.method }}"
|
||||
build_deps: "{{ srcconfig.alacritty.deps[ansible_os_family] }}"
|
||||
cargo:
|
||||
vers: "{{ pkgconfig.alacritty.version }}"
|
||||
locked: true
|
||||
name: alacritty
|
||||
@@ -1,10 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set aquamarine config
|
||||
ansible.builtin.set_fact:
|
||||
aquamarine:
|
||||
bin: aquamarine
|
||||
build_deps: "{{ srcconfig.aquamarine.deps[ansible_os_family] }}"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
pkg_deps: "{{ pkgconfig.aquamarine.pkg_deps }}"
|
||||
vers: "{{ pkgconfig.aquamarine.version }}"
|
||||
@@ -1,31 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set bitwarden install method for Linux
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
bitwarden:
|
||||
method: "{{ pkgconfig.bitwarden.method[ansible_distribution] | default('flatpak') }}"
|
||||
|
||||
- name: Set bitwarden install method for MacOSX
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
bitwarden:
|
||||
method: cask
|
||||
|
||||
- name: Set bitwarden config
|
||||
ansible.builtin.set_fact:
|
||||
bitwarden:
|
||||
method: "{{ bitwarden.method }}"
|
||||
pkg: "{{ pkgconfig.bitwarden[bitwarden.method] }}"
|
||||
|
||||
- name: Set bitwarden config for appimage install
|
||||
when:
|
||||
- bitwarden.method == 'appimage'
|
||||
ansible.builtin.set_fact:
|
||||
bitwarden:
|
||||
method: appimage
|
||||
file: "{{ pkgconfig.bitwarden.appimage.name }}"
|
||||
link_name: "{{ pkgconfig.bitwarden.appimage.link_name }}"
|
||||
url: "{{ pkgconfig.bitwarden.appimage.url }}"
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set broot config
|
||||
ansible.builtin.set_fact:
|
||||
broot:
|
||||
vers: "{{ pkgconfig.broot.version }}"
|
||||
name: broot
|
||||
locked: true
|
||||
deps: "{{ pkgconfig.broot.build_deps[ansible_os_family] }}"
|
||||
@@ -1,7 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set carapace config
|
||||
ansible.builtin.set_fact:
|
||||
carapace:
|
||||
pkgs: "{{ pkgconfig.carapace.pkgs[ansible_os_family] }}"
|
||||
repo: "{{ pkgconfig.carapace.repo[ansible_os_family] }}"
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load cbfmt configuration
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/cbfmt.yml
|
||||
|
||||
- name: Append cbfmt to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + cbfmt.pkgs }}"
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set choose config
|
||||
ansible.builtin.set_fact:
|
||||
choose:
|
||||
name: choose
|
||||
vers: "{{ pkgconfig.choose.version }}"
|
||||
locked: true
|
||||
choose_configured: true
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set clangd config
|
||||
ansible.builtin.set_fact:
|
||||
clangd:
|
||||
pkgs: "{{ pkgconfig.clangd.pkgs[ansible_os_family] }}"
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load cmake-format configuration
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/cmake-format.yml
|
||||
|
||||
- name: Append cmake-format to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + cmake_format.pkgs }}"
|
||||
@@ -1,7 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set cockpit configuration
|
||||
ansible.builtin.set_fact:
|
||||
cockpit:
|
||||
enabled: true
|
||||
pkgs: "{{ pkgconfig.cockpit.pkgs[ansible_os_family] | default([]) }}"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set configuration for consul
|
||||
ansible.builtin.set_fact:
|
||||
consul:
|
||||
pkgs: "{{ pkgconfig.consul.pkgs[ansible_system] }}"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set fd config
|
||||
ansible.builtin.set_fact:
|
||||
fd:
|
||||
pkgs: "{{ pkgconfig.fd.pkgs[ansible_os_family] }}"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load firefox pkgconfig
|
||||
ansible.bulitin.set_fact:
|
||||
firefox:
|
||||
method: "{{ pkgconfig.firefox.method[ansible_os_family] | default(pkgconfig.firefox.method.default) }}"
|
||||
@@ -1,42 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set ghostty install method
|
||||
ansible.builtin.set_fact:
|
||||
ghostty:
|
||||
method: "{{ pkgconfig.ghostty.methods[ansible_distribution] | default(pkgconfig.ghostty.methods.default) }}"
|
||||
|
||||
- name: Set ghostty config
|
||||
when:
|
||||
- ghostty.method == 'src'
|
||||
ansible.builtin.set_fact:
|
||||
ghostty:
|
||||
method: "{{ ghostty.method }}"
|
||||
arch: "{{ pkgconfig.ghostty.archmap[ansible_architecture] }}"
|
||||
clean: "{{ pkgconfig_ghostty_clean | default(package_default_clean_src) }}"
|
||||
deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
|
||||
vers: "{{ pkgconfig.ghostty.version }}"
|
||||
pkg: "{{ pkgconfig.ghostty[ghostty.method] }}"
|
||||
repo: "{{ pkgconfig.ghostty.git_repo }}"
|
||||
build_deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
|
||||
optimize: "{{ pkgconfig.ghostty.optimize }}"
|
||||
installed_files: "{{ pkgconfig.ghostty.build_installed_files }}"
|
||||
|
||||
- name: Set ghostty package manager install
|
||||
when:
|
||||
- ghostty.method == 'sys' or
|
||||
ghostty.method == 'cask'
|
||||
ansible.builtin.set_fact:
|
||||
ghostty:
|
||||
method: "{{ ghostty.method }}"
|
||||
pkg: "{{ pkgconfig.ghostty[ghostty.method] }}"
|
||||
pkg_repo: "{{ pkgconfig.ghostty.pkg_repo[ansible_distribution] | default(omit) }}"
|
||||
|
||||
- name: Set ghostty config for appimage install
|
||||
when:
|
||||
- ghostty.method == 'appimage'
|
||||
ansible.builtin.set_fact:
|
||||
ghostty:
|
||||
method: "{{ ghostty.method }}"
|
||||
file: "Ghostty-{{ ghostty.vers }}-{{ ghostty.arch }}.AppImage"
|
||||
link_name: "{{ pkgconfig.ghostty.appimage.link_name }}"
|
||||
url: "{{ pkgconfig.ghostty.appimage.base_url }}/v{{ ghostty.vers }}/Ghostty-{{ ghostty.vers }}-{{ ghostty.arch }}.AppImage"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set git config
|
||||
ansible.builtin.set_fact:
|
||||
git:
|
||||
pkgs: "{{ pkgconfig.git.pkgs[ansible_os_family] }}"
|
||||
@@ -1,21 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible #
|
||||
---
|
||||
- name: Set gitea server version
|
||||
ansible.builtin.set_fact:
|
||||
gitea_server:
|
||||
vers: "{{ pkgconfig.gitea_server.version }}"
|
||||
|
||||
- name: Set gitea server url and filename
|
||||
ansible.builtin.set_fact:
|
||||
gitea_server:
|
||||
vers: "{{ gitea_server.vers }}"
|
||||
url: "{{ pkgconfig.gitea_server.baseurl }}/{{ gitea_server.vers }}"
|
||||
file: "gitea-{{ gitea_server.vers }}-{{ pkgconfig.gitea_server.os[ansible_system] }}-{{ pkgconfig.gitea_server.arch[ansible_architecture] }}"
|
||||
|
||||
- name: Set gitea server sha256sum url
|
||||
ansible.builtin.set_fact:
|
||||
gitea_server:
|
||||
vers: "{{ gitea_server.vers }}"
|
||||
url: "{{ gitea_server.url }}"
|
||||
file: "{{ gitea_server.file }}"
|
||||
sha256url: "sha256:{{ pkgconfig.gitea_server.baseurl }}/{{ gitea_server.vers }}/{{ gitea_server.file }}.sha256"
|
||||
@@ -1,23 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set go configuration
|
||||
ansible.builtin.set_fact:
|
||||
go:
|
||||
method: archive
|
||||
arch: "{{ pkgconfig.go.archmap[ansible_architecture] }}"
|
||||
ext: "{{ pkgconfig.go.extmap[ansible_system] }}"
|
||||
sys: "{{ ansible_system | lower }}"
|
||||
vers: "{{ pkgconfig.go.version }}"
|
||||
|
||||
- name: Set go composite facts
|
||||
ansible.builtin.set_fact:
|
||||
go:
|
||||
method: archive
|
||||
arch: "{{ go.arch }}"
|
||||
archive: "go{{ go.vers }}.{{ go.sys }}-{{ go.arch }}.{{ pkgconfig.go.extmap[ansible_system] }}"
|
||||
ext: "{{ go.ext }}"
|
||||
prefix: "{% if ansible_distribution == 'MacOSX' %}/{% else %}{{ path.prefix }}{% endif %}"
|
||||
sum: "{{ pkgconfig.go.sums[go.vers][ansible_system][go.arch] }}"
|
||||
sys: "{{ go.sys }}"
|
||||
base_url: "{{ pkgconfig.go.base_url }}"
|
||||
vers: "{{ go.vers }}"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set config for greetd
|
||||
ansible.builtin.set_fact:
|
||||
greetd:
|
||||
pkgs: "{{ pkgconfig.greetd.pkgs[ansible_os_family] }}"
|
||||
@@ -1,15 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set OS name for RedHat family
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
ansible.builtin.set_fact:
|
||||
hashicorp:
|
||||
repo: "{{ pkgconfig.hashicorp.Linux[rpm_dist.stdout].repo }}"
|
||||
|
||||
- name: Set repo for debian
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
ansible.builtin.set_fact:
|
||||
hashicorp:
|
||||
repo: "{{ pkgconfig.hashicorp.Linux.Debian.repo }}"
|
||||
@@ -1,12 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set method for httpie
|
||||
ansible.builtin.set_fact:
|
||||
httpie:
|
||||
method: "{{ pkgconfig.httpie.method[ansible_distribution] | default(pkgconfig.httpie.method.default) }}"
|
||||
|
||||
- name: Set config for httpie
|
||||
ansible.builtin.set_fact:
|
||||
httpie:
|
||||
method: "{{ httpie.method }}"
|
||||
pkg: "{{ pkgconfig.httpie[httpie.method] }}"
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set hyprcursor config
|
||||
ansible.builtin.set_fact:
|
||||
hyprcursor:
|
||||
vers: "{{ pkgconfig.hyprcursor.version }}"
|
||||
pkg_deps: "{{ pkgconfig.hyprcursor.pkg_deps }}"
|
||||
build_deps: "{{ srcconfig.hyprcursor.deps[ansible_os_family] }}"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,8 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set hyprgraphics config
|
||||
ansible.builtin.set_fact:
|
||||
hyprgraphics:
|
||||
vers: "{{ pkgconfig.hyprgraphics.version }}"
|
||||
build_deps: "{{ srcconfig.hyprgraphics.deps[ansible_os_family] }}"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,12 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set hypridle config
|
||||
ansible.builtin.set_fact:
|
||||
hypridle:
|
||||
vers: "{{ pkgconfig.hypridle.version }}"
|
||||
repo: "{{ pkgconfig.hypridle.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.hypridle.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.hypridle.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hypridle.build_installed_files }}"
|
||||
git_path: "{{ d_tempdir.path }}/hypridle"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,13 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set hyprland config
|
||||
ansible.builtin.set_fact:
|
||||
hyprland:
|
||||
vers: "{{ pkgconfig.hyprland.version }}"
|
||||
repo: "{{ pkgconfig.hyprland.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.hyprland.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.hyprland.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hyprland.build_installed_files }}"
|
||||
git_path: "{{ d_tempdir.path }}/Hyprland"
|
||||
prefix: "/usr/local"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,11 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set hyprland-protocols config
|
||||
ansible.builtin.set_fact:
|
||||
hyprland_protocols:
|
||||
vers: "{{ pkgconfig.hyprland_protocols.version }}"
|
||||
repo: "{{ pkgconfig.hyprland_protocols.repo }}"
|
||||
build_deps: "{{ pkgconfig.hyprland_protocols.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hyprland_protocols.build_installed_files }}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprland-protocols"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,12 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set hyprland_qt_support config
|
||||
ansible.builtin.set_fact:
|
||||
hyprland_qt_support:
|
||||
vers: "{{ pkgconfig.hyprland_qt_support.version }}"
|
||||
repo: "{{ pkgconfig.hyprland_qt_support.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.hyprland_qt_support.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.hyprland_qt_support.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hyprland_qt_support.build_installed_files }}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprland_qt_support"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,12 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set hyprland_qtutils config
|
||||
ansible.builtin.set_fact:
|
||||
hyprland_qtutils:
|
||||
vers: "{{ pkgconfig.hyprland_qtutils.version }}"
|
||||
repo: "{{ pkgconfig.hyprland_qtutils.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.hyprland_qtutils.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.hyprland_qtutils.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hyprland_qtutils.build_installed_files }}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprland_qtutils"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,12 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set hyprlang config
|
||||
ansible.builtin.set_fact:
|
||||
hyprlang:
|
||||
vers: "{{ pkgconfig.hyprlang.version }}"
|
||||
repo: "{{ pkgconfig.hyprlang.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.hyprlang.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.hyprlang.build_deps[ansible_os_family] }}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprlang"
|
||||
installed_files: "{{ pkgconfig.hyprlang.build_installed_files }}"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,12 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set hyprlock config
|
||||
ansible.builtin.set_fact:
|
||||
hyprlock:
|
||||
vers: "{{ pkgconfig.hyprlock.version }}"
|
||||
repo: "{{ pkgconfig.hyprlock.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.hyprlock.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.hyprlock.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hyprlock.build_installed_files }}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprlock"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,12 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set hyprpaper config
|
||||
ansible.builtin.set_fact:
|
||||
hyprpaper:
|
||||
vers: "{{ pkgconfig.hyprpaper.version }}"
|
||||
repo: "{{ pkgconfig.hyprpaper.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.hyprpaper.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.hyprpaper.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hyprpaper.build_installed_files }}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprpaper"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,12 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set hyprpicker config
|
||||
ansible.builtin.set_fact:
|
||||
hyprpicker:
|
||||
vers: "{{ pkgconfig.hyprpicker.version }}"
|
||||
repo: "{{ pkgconfig.hyprpicker.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.hyprpicker.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.hyprpicker.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hyprpicker.build_installed_files }}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprpicker"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,11 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set hyprpolkitagent config
|
||||
ansible.builtin.set_fact:
|
||||
hyprpolkitagent:
|
||||
vers: "{{ pkgconfig.hyprpolkitagent.version }}"
|
||||
repo: "{{ pkgconfig.hyprpolkitagent.repo }}"
|
||||
build_deps: "{{ pkgconfig.hyprpolkitagent.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hyprpolkitagent.build_installed_files }}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprpolkitagent"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,11 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set hyprutils config
|
||||
ansible.builtin.set_fact:
|
||||
hyprutils:
|
||||
vers: "{{ pkgconfig.hyprutils.version }}"
|
||||
repo: "{{ pkgconfig.hyprutils.repo }}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprutils"
|
||||
installed_files: "{{ pkgconfig.hyprutils.build_installed_files }}"
|
||||
build_deps: "{{ pkgconfig.hyprutils.build_deps[ansible_os_family] }}"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,11 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set hyperwayland-scanner config
|
||||
ansible.builtin.set_fact:
|
||||
hyprwayland_scanner:
|
||||
vers: "{{ pkgconfig.hyprwayland_scanner.version }}"
|
||||
repo: "{{ pkgconfig.hyprwayland_scanner.repo }}"
|
||||
build_deps: "{{ pkgconfig.hyprwayland_scanner.build_deps[ansible_os_family] }}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprwayland-scanner"
|
||||
installed_files: "{{ pkgconfig.hyprwayland_scanner.build_installed_files }}"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set kitty config
|
||||
ansible.builtin.set_fact:
|
||||
kitty:
|
||||
pkgs: "{{ pkgconfig.kitty.pkgs[ansible_system] }}"
|
||||
@@ -1,8 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set libreoffice config
|
||||
ansible.builtin.set_fact:
|
||||
libreoffice:
|
||||
method: "{{ pkgconfig.libreoffice.methods[ansible_distribution] | default(pkgconfig.libreoffice.methods.default) }}"
|
||||
flatpak: "{{ pkgconfig.libreoffice.flatpak }}"
|
||||
pkgs: "{{ pkgconfig.libreoffice.pkgs[ansible_os_family] }}"
|
||||
@@ -1,17 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set luals config
|
||||
ansible.builtin.set_fact:
|
||||
luals:
|
||||
vers: "{{ pkgconfig.luals.version }}"
|
||||
sys: "{{ pkgconfig.luals.sysmap[ansible_system] }}"
|
||||
arch: "{{ pkgconfig.luals.archmap[ansible_architecture] }}"
|
||||
|
||||
- name: Set luals config
|
||||
ansible.builtin.set_fact:
|
||||
luals:
|
||||
vers: "{{ luals.vers }}"
|
||||
sys: "{{ luals.sys }}"
|
||||
arch: "{{ luals.arch }}"
|
||||
archive: "lua-language-server-{{ luals.vers }}-{{ luals.sys }}-{{ luals.arch }}.tar.gz"
|
||||
url: "{{ pkgconfig.luals.base_url }}/{{ luals.vers }}"
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set neovide config
|
||||
ansible.builtin.set_fact:
|
||||
neovide:
|
||||
name: neovide
|
||||
build_deps: "{{ pkgconfig.neovide.build_deps[ansible_os_family] }}"
|
||||
vers: "{{ pkgconfig.neovide.version }}"
|
||||
locked: true
|
||||
@@ -1,39 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set neovim install method
|
||||
ansible.builtin.set_fact:
|
||||
neovim:
|
||||
method: "{{ pkgconfig.neovim.methods[ansible_distribution] | default(pkgconfig.neovim.methods.default) }}"
|
||||
|
||||
- name: Set neovim sys package manager config
|
||||
when:
|
||||
- neovim.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
neovim:
|
||||
method: "{{ neovim.method }}"
|
||||
pkgs: "{{ pkgconfig.neovim.pkgs[ansible_distribution] | default(pkgconfig.neovim.pkgs.default) }}"
|
||||
|
||||
- name: Set neovim src build config
|
||||
when:
|
||||
- neovim.method == 'src'
|
||||
ansible.builtin.set_fact:
|
||||
neovim:
|
||||
method: "{{ neovim.method }}"
|
||||
vers: "{{ pkgconfig.neovim.git_branch }}"
|
||||
build_deps: "{{ pkgconfig.neovim.build_deps[ansible_os_family] }}"
|
||||
git_repo: "{{ pkgconfig.neovim.git_repo }}"
|
||||
git_path: "{{ d_tempdir.path }}/neovim"
|
||||
git_branch: "{{ pkgconfig.neovim.git_branch }}"
|
||||
build_type: "{{ pkgconfig.neovim.build_type }}"
|
||||
clean: "{{ pkgconfig_neovim.clean | default(_pkgconfig_force_rebuild) }}"
|
||||
installed_files: "{{ pkgconfig.neovim.build_installed_files }}"
|
||||
|
||||
- name: Set neovim config for appimage install
|
||||
when:
|
||||
- neovim.method == 'appimage'
|
||||
ansible.builtin.set_fact:
|
||||
neovim:
|
||||
method: "{{ neovim.method }}"
|
||||
file: "nvim-linux-{{ ansible_architecture }}.appimage"
|
||||
link_name: nvim
|
||||
url: "{{ pkgconfig.neovim.appimage.base_url }}/{{ neovim.vers }}/nvim-linux-{{ ansible_architecture }}.appimage"
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set facts for nerdfonts
|
||||
ansible.builtin.set_fact:
|
||||
nerdfonts:
|
||||
fonts: "{{ nerdfonts_install | default(pkgconfig.nerdfonts.default_install) }}"
|
||||
path: "{{ pkgconfig.nerdfonts.path }}"
|
||||
base_url: "{{ pkgconfig.nerdfonts.base_url }}"
|
||||
force_install: "{{ pkgconfig.force_install_nerdfonts | default(false) }}"
|
||||
@@ -1,15 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set nextcloud install method
|
||||
ansible.builtin.set_fact:
|
||||
nextcloud:
|
||||
method: "{{ pkgconfig.nextcloud.method | default('flatpak') }}"
|
||||
|
||||
- name: Set nextcloud config
|
||||
when:
|
||||
- nextcloud.method == 'flatpak'
|
||||
ansible.builtin.set_fact:
|
||||
nextcloud:
|
||||
method: "{{ nextcloud.method }}"
|
||||
name: "{{ pkgconfig.nextcloud.flatpak.name }}"
|
||||
remote: "{{ pkgconfig.nextcloud.flatpak.remote }}"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Configure nfs_client
|
||||
ansible.builtin.set_fact:
|
||||
nfs_client:
|
||||
pkgs: "{{ pkgconfig.nfs_client.pkgs[ansible_os_family] }}"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Configure nfs_server
|
||||
ansible.builtin.set_fact:
|
||||
nfs_server:
|
||||
pkgs: "{{ pkgconfig.nfs_server.pkgs[ansible_os_family] }}"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set nodejs config
|
||||
ansible.builtin.set_fact:
|
||||
nodejs:
|
||||
pkgs: "{{ pkgconfig.nodejs.pkgs[ansible_system] }}"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set nomad config
|
||||
ansible.builtin.set_fact:
|
||||
nomad:
|
||||
pkgs: "{{ pkgconfig.nomad.pkgs[ansible_system] }}"
|
||||
@@ -1,11 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set nwg-hello configuration
|
||||
ansible.builtin.set_fact:
|
||||
nwg_hello:
|
||||
vers: "{{ pkgconfig.nwg_hello.version }}"
|
||||
git_repo: "{{ pkgconfig.nwg_hello.git_repo }}"
|
||||
installed_files: "{{ pkgconfig.nwg_hello.build_installed_files }}"
|
||||
git_path: "{{ d_tempdir.path }}/nwg-hello"
|
||||
build_deps: "{{ pkgconfig.nwg_hello.bulid_deps[ansible_os_family] }}"
|
||||
clean: "{{ pkgconfig_nwg_hello_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,25 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set packer config
|
||||
ansible.builtin.set_fact:
|
||||
packer:
|
||||
method: "{{ pkgconfig.packer.method[ansible_system] | default(pkgconfig.packer.method.default) }}"
|
||||
|
||||
- name: Set packer config for system install
|
||||
when:
|
||||
- packer.method == 'sys' or
|
||||
packer.method == 'tap'
|
||||
ansible.builtin.set_fact:
|
||||
packer:
|
||||
method: "{{ packer.method }}"
|
||||
pkgs: "{{ pkgconfig.packer.pkgs[ansible_system] }}"
|
||||
|
||||
- name: Set packer config for archive install
|
||||
when:
|
||||
- packer.method == 'archive'
|
||||
ansible.builtin.set_fact:
|
||||
packer:
|
||||
method: "{{ packer.method }}"
|
||||
archive:
|
||||
file: "packer_{{ pkgconfig.packer.version }}_linux_amd64.zip"
|
||||
url: "{{ pkgconfig.packer.archive.baseurl }}/packer/{{ pkgconfig.packer.version }}"
|
||||
@@ -1,8 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set pgadmin config
|
||||
ansible.builtin.set_fact:
|
||||
pgadmin:
|
||||
method: "{{ pkgconfig.pgadmin.methods[ansible_distribution] | default(pkgconfig.pgadmin.methods.default) }}"
|
||||
pkgs: "{{ pkgconfig.pgadmin.pkgs[ansible_system] }}"
|
||||
flatpak: "{{ pkgconfig.pgadmin.flatpak }}"
|
||||
@@ -1,15 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set postgresql server install method
|
||||
ansible.builtin.set_fact:
|
||||
postgresql_server:
|
||||
method: "{{ pkgconfig.postgresql_server.method[ansible_os_family] | default(pkgconfig.postgresql_server.method.default) }}"
|
||||
vers: "{{ pkgconfig.postgresql_server.version }}"
|
||||
|
||||
- name: Set postgresql server config
|
||||
when:
|
||||
- postgresql_server.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
postgresql_server:
|
||||
method: "{{ postgresql_server.method }}"
|
||||
pkgs: "{{ pkgconfig.postgresql_server.pkgs[ansible_os_family][postgresql_server.vers] }}"
|
||||
@@ -1,14 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set pulumi config
|
||||
ansible.builtin.set_fact:
|
||||
pulumi:
|
||||
vers: "{{ pkgconfig.pulumi.version }}"
|
||||
archive: "pulumi-{{ pkgconfig.pulumi.version }}-{{ ansible_system | lower }}-{{ pkgconfig.pulumi.archmap[ansible_architecture] }}.tar.gz"
|
||||
|
||||
- name: Set pulumi config
|
||||
ansible.builtin.set_fact:
|
||||
pulumi:
|
||||
vers: "{{ pulumi.vers }}"
|
||||
archive: "{{ pulumi.archive }}"
|
||||
dlurl: "{{ pkgconfig.pulumi.url_base }}/{{ pulumi.archive }}"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set python3 config
|
||||
ansible.builtin.set_fact:
|
||||
python3:
|
||||
pkgs: "{{ pkgconfig.python3.pkgs[ansible_os_family] }}"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set rust config
|
||||
ansible.builtin.set_fact:
|
||||
rust:
|
||||
pkgs: "{{ pkgconfig.rust.pkgs[ansible_os_family] }}"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Configure samba_client
|
||||
ansible.builtin.set_fact:
|
||||
samba_client:
|
||||
pkgs: "{{ pkgconfig.samba_client.pkgs[ansible_os_family] | default([]) }}"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Configure samba_server
|
||||
ansible.builtin.set_fact:
|
||||
samba_server:
|
||||
pkgs: "{{ pkgconfig.samba_server.pkgs[ansible_os_family] }}"
|
||||
@@ -1,11 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set sdbus-cpp-2 config
|
||||
ansible.builtin.set_fact:
|
||||
sdbus_cpp_2:
|
||||
vers: "{{ pkgconfig.sdbus_cpp_2.version }}"
|
||||
repo: "{{ pkgconfig.sdbus_cpp_2.repo }}"
|
||||
build_deps: "{{ pkgconfig.sdbus_cpp_2.build_deps[ansible_os_family] }}"
|
||||
git_path: "{{ d_tempdir.path }}/sdbus-cpp"
|
||||
prefix: "/usr/local"
|
||||
clean: "{{ pkgconfig_sdbus_cpp_2_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,7 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set tailscale config
|
||||
ansible.builtin.set_fact:
|
||||
tailscale:
|
||||
url_base: "{{ pkgconfig.tailscale.url_base }}"
|
||||
release: "{{ pkgconfig.tailscale.release[ansible_distribution_release] | default({}) }}"
|
||||
@@ -1,7 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Configure targetcli
|
||||
ansible.builtin.set_fact:
|
||||
targetcli:
|
||||
pkgs: "{{ pkgconfig.targetcli.pkgs[ansible_os_family] | default([]) }}"
|
||||
services: "{{ pkgconfig.targetcli.services[ansible_os_family] | default([]) }}"
|
||||
@@ -1,25 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- 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
|
||||
when:
|
||||
- terraform.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
terraform:
|
||||
method: "{{ terraform.method }}"
|
||||
pkgs: "{{ pkgconfig.terraform.pkgs[ansible_system] }}"
|
||||
|
||||
- name: Set terraform archive config
|
||||
when:
|
||||
- terraform.method == 'archive'
|
||||
ansible.builtin.set_fact:
|
||||
terraform:
|
||||
method: "{{ terraform.method }}"
|
||||
archive: "terraform_{{ pkgconfig.terraform.version }}_{{ pkgconfig.terraform[sysmap] }}_{{ pkgconfig.terraform[archmap] }}.zip"
|
||||
url: "{{ pkgconfig.terraform.archive.baseurl }}/{{ pkgconfig.terraform.version }}"
|
||||
path: "{{ path.archive }}/terraform"
|
||||
bin: "{{ path.bin }}/terraform"
|
||||
@@ -1,22 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set terraformls install method
|
||||
ansible.builtin.set_fact:
|
||||
terraformls:
|
||||
method: "{{ pkgconfig.terraformls.method[ansible_os_family] | default(pkgconfig.terraformls.method.default) }}"
|
||||
|
||||
- name: Set terraformls config
|
||||
when:
|
||||
- terraformls.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
terraformls:
|
||||
method: "{{ terraformls.method }}"
|
||||
pkgs: "{{ pkgconfig.terraformls.pkgs[ansible_system] }}"
|
||||
|
||||
- name: Set terraformls config
|
||||
when:
|
||||
- terraformls.method == 'gosrc'
|
||||
ansible.builtin.set_fact:
|
||||
terraformls:
|
||||
method: "{{ terraformls.method }}"
|
||||
gopkg: "{{ pkgconfig.terraformls.gobase }}@{{ pkgconfig.terraformls.version }}"
|
||||
@@ -1,6 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set tidy config
|
||||
ansible.builtin.set_fact:
|
||||
tidy:
|
||||
pkgs: "{{ pkgconfig.tidy.pkgs[ansible_os_family] }}"
|
||||
@@ -1,12 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set uwsm config
|
||||
ansible.builtin.set_fact:
|
||||
uwsm:
|
||||
vers: "{{ pkgconfig.uwsm.version }}"
|
||||
repo: "{{ pkgconfig.uwsm.repo }}"
|
||||
build_deps: "{{ pkgconfig.uwsm.build_deps[ansible_os_family] }}"
|
||||
deps: "{{ pkgconfig.uwsm.deps[ansible_os_family] }}"
|
||||
clean: "{{ pkgconfig_uwsm_clean | default(package_default_clean_src) }}"
|
||||
installed_files: "{{ pkgconfig.uwsm.build_installed_files }}"
|
||||
prefix: "/usr/local"
|
||||
@@ -1,25 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set vault install method
|
||||
ansible.builtin.set_fact:
|
||||
vault:
|
||||
method: "{{ pkgconfig.vault.method[ansible_os_family] | default(pkgconfig.vault.method.default) }}"
|
||||
|
||||
- name: Set vault config
|
||||
when:
|
||||
- vault.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
vault:
|
||||
method: "{{ vault.method }}"
|
||||
pkgs: "{{ pkgconfig.vault.pkgs[ansible_system] }}"
|
||||
|
||||
- name: Set vault config
|
||||
when:
|
||||
- vault.method == 'archive'
|
||||
ansible.builtin.set_fact:
|
||||
vault:
|
||||
method: "{{ vault.method }}"
|
||||
archive: "vault_{{ pkgconfig.vault.version }}_{{ pkgconfig.vault.sysmap[ansible_system] }}_{{ pkgconfig.vault.archmap[ansible_architecture] }}.zip"
|
||||
url: "{{ pkgconfig.vault.archive.baseurl }}/{{ pkgconfig.vault.version }}"
|
||||
path: "{{ path.archive }}/vault"
|
||||
bin: "{{ path.bin }}/vault"
|
||||
@@ -1,12 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set xdg-desktop-portal-hyprland config
|
||||
ansible.builtin.set_fact:
|
||||
xdg_desktop_portal_hyprland:
|
||||
vers: "{{ pkgconfig.xdg_desktop_portal_hyprland.version }}"
|
||||
repo: "{{ pkgconfig.xdg_desktop_portal_hyprland.repo }}"
|
||||
pkg_deps: "{{ pkgconfig.xdg_desktop_portal_hyprland.pkg_deps }}"
|
||||
build_deps: "{{ pkgconfig.xdg_desktop_portal_hyprland.build_deps[ansible_os_family] }}"
|
||||
git_path: "{{ d_tempdir.path }}/xdg-desktop-portal-hyprland"
|
||||
installed_files: "{{ pkgconfig.xdg_desktop_portal_hyprland.build_installed_files }}"
|
||||
clean: "{{ pkgconfig_hyprland_clean | default(package_default_clean_src) }}"
|
||||
@@ -1,8 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set xh config
|
||||
ansible.builtin.set_fact:
|
||||
xh:
|
||||
vers: "{{ pkgconfig.xh.version }}"
|
||||
name: xh
|
||||
locked: true
|
||||
@@ -1,8 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible
|
||||
---
|
||||
- name: Set yazi vars
|
||||
ansible.builtin.set_fact:
|
||||
yazi:
|
||||
pkgs: "{{ pkgconfig.yazi.pkgs }}"
|
||||
deps: "{{ pkgconfig.yazi.depends[ansible_os_family] }}"
|
||||
pkg_deps: "{{ pkgconfig.yazi.pkg_depends }}"
|
||||
@@ -1,23 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set distro name
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
ansible.builtin.set_fact:
|
||||
rhname: "{%if ansible_distribution == 'Fedora' %}fedora{% else %}epel{% endif %}"
|
||||
|
||||
- name: Set deps for distros
|
||||
ansible.builtin.set_fact:
|
||||
zfs:
|
||||
deps: "{% if ansible_distribution == 'Fedora' %}{{ pkgconfig.zfs.build_deps.Fedora }}{% else %}{{ pkgconfig.zfs.build_deps[ansible_os_family] }}{% endif %}"
|
||||
|
||||
- name: Set ZFS config
|
||||
ansible.builtin.set_fact:
|
||||
zfs:
|
||||
repo_pkg: "{{ pkgconfig.zfs.repo_base }}/{{ rhname }}/zfs-release-{{ pkgconfig.zfs[rhname].release }}{{ rpm_dist.stdout }}.noarch.rpm"
|
||||
deps: "{{ zfs.deps }}"
|
||||
pkgs: "{{ pkgconfig.zfs.pkgs[ansible_os_family] }}"
|
||||
skip_gpg_check: "{{ rhname == 'fedora' }}"
|
||||
release: "{{ ansible_distribution_release }}"
|
||||
gpg_key: "{{ pkgconfig.zfs.gpg_key }}"
|
||||
gpg_fp: "{{ pkgconfig.zfs.gpg_key_fingerprint }}"
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set zig configuration
|
||||
ansible.builtin.set_fact:
|
||||
zig:
|
||||
vers: "{{ pkgconfig.zig.version }}"
|
||||
path: "zig-{{ pkgconfig.zig.sysmap[ansible_system] }}-{{ pkgconfig.zig.archmap[ansible_architecture] }}-{{ pkgconfig.zig.version }}"
|
||||
pkg: "zig-{{ pkgconfig.zig.sysmap[ansible_system] }}-{{ pkgconfig.zig.archmap[ansible_architecture] }}-{{ pkgconfig.zig.version }}.tar.xz"
|
||||
base_url: "{{ pkgconfig.zig.base_url }}"
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set zls config
|
||||
ansible.builtin.set_fact:
|
||||
zls:
|
||||
path: "zls-{{ pkgconfig.zls.sysmap[ansible_system] }}-{{ pkgconfig.zls.archmap[ansible_architecture] }}-{{ pkgconfig.zls.version }}"
|
||||
pkg: "zls-{{ pkgconfig.zls.sysmap[ansible_system] }}-{{ pkgconfig.zls.archmap[ansible_architecture] }}-{{ pkgconfig.zls.version }}.tar.xz"
|
||||
vers: "{{ pkgconfig.zls.version }}"
|
||||
base_url: "{{ pkgconfig.zls.base_url }}"
|
||||
@@ -1,68 +1,68 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set common facts
|
||||
ansible.builtin.set_fact:
|
||||
distribution: "{{ ansible_facts['distribution'] }}"
|
||||
system: "{{ ansible_facts['system'] }}"
|
||||
os_family: "{{ ansible_facts['os_family'] }}"
|
||||
user_dir: "{{ ansible_facts['user_dir'] }}"
|
||||
user_id: "{{ ansible_facts['user_id'] }}"
|
||||
user_gid: "{{ ansible_facts['user_gid'] }}"
|
||||
os_version:
|
||||
major: "{{ ansible_facts['distribution_major_version'] }}"
|
||||
version: "{{ ansible_facts['distribution_version'] }}"
|
||||
release: "{{ ansible_facts['distribution_release'] }}"
|
||||
|
||||
- name: Set package_home_base for Darwin
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
- system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
package_home_base: /Users
|
||||
|
||||
- name: Set package_home_base for Linux
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- system == 'Linux' or
|
||||
os_family == 'FreeBSD'
|
||||
ansible.builtin.set_fact:
|
||||
package_home_base: /home
|
||||
|
||||
- name: Set local path prefix
|
||||
when:
|
||||
- use_local
|
||||
- name: Set default paths
|
||||
ansible.builtin.set_fact:
|
||||
path:
|
||||
prefix: "{{ package_home_base }}/{{ ansible_ssh_user }}/.local"
|
||||
path_appimage: "{{ install_prefix }}/appimage"
|
||||
path_archive: "{{ install_prefix }}/archive"
|
||||
path_bin: "{{ install_prefix }}/bin"
|
||||
path_cargo: "{{ install_prefix }}/cargo"
|
||||
path_source: "{{ install_prefix }}/source"
|
||||
path_go: "{{ install_prefix }}/go"
|
||||
path_zig: "{{ install_prefix }}/zig"
|
||||
path_pipx: "{{ install_prefix }}/pipx"
|
||||
store_path: "{{ user_dir }}/.cache/ansible_role_package"
|
||||
path_lib: "{{ install_prefix }}/lib"
|
||||
|
||||
- name: Set non-local path prefix
|
||||
when:
|
||||
- not use_local
|
||||
ansible.builtin.set_fact:
|
||||
path:
|
||||
prefix: "{{ defaults.path.prefix }}"
|
||||
|
||||
- name: Set install variables
|
||||
ansible.builtin.set_fact:
|
||||
ext_become: "{{ not use_local }}"
|
||||
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 install_become_group from install_become_user
|
||||
block:
|
||||
- name: Get install_become_user userinfo
|
||||
ansible.builtin.getent:
|
||||
database: passwd
|
||||
key: "{{ install_become_user }}"
|
||||
|
||||
- name: Set Linux specific facts
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
flatpak_remote: # flatpak remotes, includes flathub by default
|
||||
- name: flathub
|
||||
url: https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
flatpak_method: "{% if use_local %}user{% else %}system{% endif %}"
|
||||
pkg_appimage: [] # appimages to install
|
||||
pkg_flatpak: [] # flatpak packages to install
|
||||
pkg_snap: [] # snpacraft.io packages
|
||||
pipx_exec: "/usr/bin/pipx"
|
||||
sys_pkg_become: true # Linux package managers require sudo access
|
||||
lib_path: lib64
|
||||
path_lib: lib64
|
||||
root_prefix: /usr/local
|
||||
|
||||
- name: Set alpine linux specific facts
|
||||
when:
|
||||
- ansible_os_family == 'Alpine'
|
||||
- os_family == 'Alpine'
|
||||
ansible.builtin.set_fact:
|
||||
lib_path: lib
|
||||
path_lib: lib
|
||||
|
||||
- name: Set rpm dist if RedHat based
|
||||
- name: Set dist code if RedHat based
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- os_family == 'RedHat'
|
||||
changed_when: false
|
||||
register: rpm_dist
|
||||
ansible.builtin.command:
|
||||
@@ -70,22 +70,11 @@
|
||||
|
||||
- name: Set macOS specific facts
|
||||
when:
|
||||
- ansible_distribution == 'MacOSX'
|
||||
- distribution == 'MacOSX' or
|
||||
distribution == 'MacOS'
|
||||
ansible.builtin.set_fact:
|
||||
brewtap: [] # homebrew taps to add
|
||||
pipx_exec: "/opt/homebrew/bin/pipx"
|
||||
pipx_exec: "/opt/homebrew/bin/pipx" # pipx executable
|
||||
pkg_cask: [] # homebrew casks
|
||||
pkg_tap: [] # homebrew tap packages
|
||||
sys_pkg_become: false # homebrew doesn't require sudo access
|
||||
lib_path: lib
|
||||
|
||||
- name: Set OS independant facts
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: [] # packages installed via prebuilt archive
|
||||
pkg_cargo: [] # rust packages from cargo
|
||||
pkg_go: [] # go applications
|
||||
pkg_npm: [] # npm commands
|
||||
pkg_pipx: [] # pipx packages
|
||||
pkg_zig: []
|
||||
pkg_src: [] # packages built from source
|
||||
pkg_sys: [] # system package manager packages, homebrew on macOS, dnf for RedHat based, apt for Debian Based
|
||||
path_lib: lib # macos shared library path
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Install go package {{ pkg }}
|
||||
become: "{{ ext_become }}"
|
||||
environment:
|
||||
GOBIN: "{{ path.bin }}"
|
||||
PATH: "{{ path.go }}/bin:$PATH"
|
||||
ansible.builtin.command:
|
||||
cmd: go install {{ pkg }}
|
||||
22
tasks/helpers/add_repository.yml
Normal file
22
tasks/helpers/add_repository.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
# Helper: external repository
|
||||
---
|
||||
- name: Add copr repository
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
community.general.copr:
|
||||
host: "{{ repo.host | default('copr.fedorainfracloud.org') }}"
|
||||
state: "{{ repo.state | default('enabled') }}"
|
||||
name: "@{{ repo.name }}"
|
||||
include: "{{ repo.include | default(omit) }}"
|
||||
exclude: "{{ repo.exclude | default(omit) }}"
|
||||
|
||||
- name: Add apt ppa
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
ansible.builtin.apt_repository:
|
||||
codename: "{{ repo.codename | default(omit) }}"
|
||||
filename: "{{ repo.filename | default(omit) }}"
|
||||
install_python_apt: true
|
||||
repo: "{{ repo.name }}"
|
||||
state: "{{ repo.state | default('present') }}"
|
||||
31
tasks/helpers/appimage.yml
Normal file
31
tasks/helpers/appimage.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Install appimages {{ appimage.name }}
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
block:
|
||||
- name: Ensure appimage path exists {{ appimage.name }}
|
||||
ansible.builtin.file:
|
||||
path: "{{ path_appimage }}/{{ appimage.name }}"
|
||||
mode: "{{ appimage.mode | default('0755') }}"
|
||||
owner: "{{ appimage.owner | default(ansible_user_id) }}"
|
||||
group: "{{ appimage.group | default(ansible_user_gid) }}"
|
||||
state: directory
|
||||
|
||||
- name: Fetch appimage {{ appimage.name }}
|
||||
ansible.builtin.get_url:
|
||||
mode: "{{ appimage.mode | default('0755') }}"
|
||||
owner: "{{ appimage.owner | default(ansible_user_id) }}"
|
||||
group: "{{ appimage.group | default(ansible_user_gid) }}"
|
||||
url: "{{ appimage.url }}"
|
||||
dest: "{{ path_appimage }}/{{ appimage.name }}/{{ appimage.filename }}"
|
||||
checksum: "{{ appimage.checksum | default(omit) }}"
|
||||
decompress: false
|
||||
backup: false
|
||||
|
||||
- name: Link appimage to bin {{ appimage.name }}
|
||||
vars:
|
||||
links:
|
||||
- from: "{{ path_appimage }}/{{ appimage.name }}/{{ appimage.filename }}"
|
||||
to: "{{ path_bin }}/{{ appimage.name }}"
|
||||
ansible.builtin.include_tasks: helpers/symlink.yml
|
||||
52
tasks/helpers/archive.yml
Normal file
52
tasks/helpers/archive.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Helpers: archive.yml
|
||||
## Description: extract and symlink archives
|
||||
## Variables: dict of key:value pairs
|
||||
## extract_to: path to extract archive to
|
||||
## name: filename of the archive
|
||||
## url: download url of the archive
|
||||
---
|
||||
- name: Ensure requirements met
|
||||
when:
|
||||
- archive.extract_to is defined
|
||||
- archive.name is defined
|
||||
- archive.url is defined
|
||||
block:
|
||||
- name: Extract archive to given path {{ archive.name }}
|
||||
block:
|
||||
- name: Ensure directory exists
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ archive.extract_to }}"
|
||||
mode: "{{ archive.mode | default('0755') }}"
|
||||
owner: "{{ archive.owner | default(ansible_facts['user_id']) }}"
|
||||
group: "{{ archive.group | default(ansible_facts['user_gid']) }}"
|
||||
|
||||
- name: Download archive to cache {{ archive.name }}
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_cache.path }}/{{ archive.name }}"
|
||||
url: "{{ archive.url }}"
|
||||
checksum: "{{ archive.checksum | default(omit) }}"
|
||||
decompress: false
|
||||
mode: '0644'
|
||||
|
||||
- name: Extract archive {{ archive.name }}
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ archive.extract_to }}"
|
||||
src: "{{ d_cache.path }}/{{ archive.name }}"
|
||||
remote_src: true
|
||||
include: "{{ archive.include | default(omit) }}"
|
||||
exclude: "{{ archive.exclude | default(omit) }}"
|
||||
|
||||
- name: Symlink archive files {{ archive.name }}
|
||||
when:
|
||||
- archive.links is defined
|
||||
- archive.links | length > 0
|
||||
vars:
|
||||
links: "{{ archive.links }}"
|
||||
ansible.builtin.include_tasks: helpers/symlink.yml
|
||||
17
tasks/helpers/cargo.yml
Normal file
17
tasks/helpers/cargo.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Helper: cargo.yml
|
||||
## Description: Install packages using the cargo command
|
||||
## Variables: top level 'dict'
|
||||
## name: package name on cargo
|
||||
## version: cargo version, omitted if empty
|
||||
## locked: _bool_, optional. Default false
|
||||
---
|
||||
- name: Install with cargo {{ pkg.name }}
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
community.general.cargo:
|
||||
name: "{{ pkg.name }}"
|
||||
version: "{{ pkg.version | default(omit) }}"
|
||||
locked: "{{ pkg.locked | default(false) }}"
|
||||
path: "{{ install_prefix }}"
|
||||
64
tasks/helpers/cargo_build.yml
Normal file
64
tasks/helpers/cargo_build.yml
Normal file
@@ -0,0 +1,64 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Helper: cargo_buil.yml
|
||||
## Description: download source, build and install using cargo
|
||||
## Variables: top level 'dict'
|
||||
## source_dir: git source directory
|
||||
## repo: git repository url
|
||||
## depth: _int_ optional, Default 1. Git depth to clone
|
||||
## force_git: _bool_ optional, default true. Force clone, overwriting existing dir
|
||||
## recursive: _bool_ optional, default true. Do a recursive clone
|
||||
## version: _string_ optional, default 'latest'. Version to checkout and build
|
||||
## build_flags: _list[str]_ optional. If set, will append these to the build command
|
||||
---
|
||||
- name: Cargo source install helper
|
||||
block:
|
||||
- name: Fetch git repo
|
||||
vars:
|
||||
path: "{{ pkg.source_dir }}"
|
||||
repo: "{{ pkg.git.repo }}"
|
||||
depth: "{{ pkg.depth | default(1) }}"
|
||||
force: "{{ pkg.force_git | default(true) }}"
|
||||
recursive: "{{ pkg.recursive | default(true) }}"
|
||||
version: "{{ pkg.git.version | default(omit) }}"
|
||||
ansible.builtin.include_tasks: helpers/git.yml
|
||||
|
||||
- name: Build cargo release
|
||||
ansible.builtin.command:
|
||||
chdir: "{{ pkg.source_dir }}"
|
||||
argv: "{{ ['cargo', 'build'] + pkg.build_flags }}"
|
||||
|
||||
- name: Clean existing install
|
||||
vars:
|
||||
files: "{{ pkg.files }}"
|
||||
ansible.builtin.include_tasks: helpers/clean_install.yml
|
||||
|
||||
- name: Install cargo release
|
||||
block:
|
||||
# - name: Install files
|
||||
# vars:
|
||||
# source_dir: "{{ pkg.source_dir }}"
|
||||
# pkg: "{{ pkg }}"
|
||||
# ansible.builtin.include_tasks: helpers/install.yml
|
||||
|
||||
- name: Create directories
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user | default(omit) }}"
|
||||
loop: "{{ pkg.files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
mode: '0755'
|
||||
path: "{{ [install_prefix, file.to] | path_join | dirname }}"
|
||||
|
||||
- name: Copy installable files
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
loop: "{{ pkg.files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ install_prefix }}/{{ file.to }}"
|
||||
mode: "{{ file.mode | default('0644') }}"
|
||||
src: "{{ pkg.source_dir }}/{{ file.from }}"
|
||||
@@ -1,10 +1,21 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Remove file list
|
||||
become: true
|
||||
loop: "{{ file_list }}"
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
loop: "{{ files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
when:
|
||||
- file.to is defined
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ file }}"
|
||||
path: "{{ install_prefix }}/{{ file.to }}"
|
||||
|
||||
- name: Check for and remove empty directories
|
||||
loop: "{{ files }}"
|
||||
loop_control:
|
||||
loop_var: dir
|
||||
when:
|
||||
- file.directory is defined
|
||||
ansible.builtin.include_tasks: internal/remove_empty_dir.yml
|
||||
|
||||
10
tasks/helpers/flatpak.yml
Normal file
10
tasks/helpers/flatpak.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Install flatpak
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
community.general.flatpak:
|
||||
name: "{{ flatpak.name }}"
|
||||
remote: "{{ flatpak.remote }}"
|
||||
method: "{{ flatpak.method | default('system') }}"
|
||||
state: "{{ flatpak.state | default('present') }}"
|
||||
11
tasks/helpers/flatpak_remote.yml
Normal file
11
tasks/helpers/flatpak_remote.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add flatpak remote
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
community.general.flatpak_remote:
|
||||
name: "{{ remote.name }}"
|
||||
flatpakrepo_url: "{{ remote.url }}"
|
||||
enabled: "{{ remote.enabled | default(true) }}"
|
||||
method: "{{ remote.method | default('system') }}"
|
||||
state: "{{ remote.state | default('present') }}"
|
||||
@@ -1,7 +1,20 @@
|
||||
- name: Clone git repository {{ src_pkg }}
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Helper: git.yml
|
||||
## Description: pull git repositories
|
||||
## Variables:
|
||||
## path: Destination path when cloning
|
||||
## repo: url to git repo
|
||||
## depth: _optional_ (default: 1) set git clone depth
|
||||
## force: _optional_ (default: true) force cloning to given path
|
||||
## recursive: _optional_ (default: true) do a recursive clone
|
||||
## version: _optional_ (default: empty) git branch/tag to clone
|
||||
---
|
||||
- name: Clone git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
force: true
|
||||
dest: "{{ src_path }}"
|
||||
repo: "{{ src_gitrepo }}"
|
||||
version: "{{ src_version | default(omit) }}"
|
||||
dest: "{{ path }}"
|
||||
repo: "{{ repo }}"
|
||||
depth: "{{ depth | default(1) }}"
|
||||
force: "{{ force | default(true) }}"
|
||||
recursive: "{{ recursive | default(true) }}"
|
||||
version: "{{ version | default(omit) }}"
|
||||
|
||||
20
tasks/helpers/go_install.yml
Normal file
20
tasks/helpers/go_install.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Clean existing go package {{ pkg.bin }}
|
||||
vars:
|
||||
files: "{{ pkg.files | default([]) }}"
|
||||
ansible.builtin.include_tasks: helpers/clean_install.yml
|
||||
|
||||
- name: Install go package "{{ pkg.url }}"
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
environment:
|
||||
GOBIN: "{{ path_bin }}"
|
||||
GOROOT: "{{ path_go }}"
|
||||
PATH: "{{ path_go }}/bin:$PATH"
|
||||
ansible.builtin.command:
|
||||
creates: "{{ pkg.bin }}"
|
||||
argv:
|
||||
- go
|
||||
- install
|
||||
- "{{ pkg.url }}"
|
||||
42
tasks/helpers/install.yml
Normal file
42
tasks/helpers/install.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Helper: install.yml
|
||||
## Description: install files defined in dict
|
||||
## Variables:
|
||||
## _Note_ This is mutually exclusive to having a 'to' key
|
||||
## - directory: path prefixed by {{ install_prefix }} of a directory to
|
||||
## be created
|
||||
## mode: _optional_, _default_ '0755'
|
||||
##
|
||||
## _Note_ This is mutually exclusive to having a 'directory' key
|
||||
## - to: where to install file to, prefixed with {{ install_prefix }}
|
||||
## from: source file from build path root for package
|
||||
## mode: _optional_, _default_ '0644'##
|
||||
##
|
||||
## Notes: This is only used when copying files or creating directories
|
||||
## for installing. If a source package doesn't require you to manually
|
||||
## copy anthing (go install, as an example), don't use this.
|
||||
---
|
||||
- name: Create directories
|
||||
become: "{{ do_become }}"
|
||||
become_user: "{{ do_become_user | default(omit) }}"
|
||||
loop: "{{ pkg.files }}"
|
||||
loop_control:
|
||||
loop_var: dir
|
||||
when:
|
||||
- dir.directory is defined
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
mode: '0755'
|
||||
path: "{{ install_prefix }}/{{ dir.directory }}"
|
||||
|
||||
- name: Copy installable files
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
loop: "{{ pkg.files }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ install_prefix }}/{{ file.to }}"
|
||||
mode: "{{ file.mode | default('0644') }}"
|
||||
src: "{{ source_dir }}/{{ file.from }}"
|
||||
73
tasks/helpers/make.yml
Normal file
73
tasks/helpers/make.yml
Normal file
@@ -0,0 +1,73 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Helper: make.yml
|
||||
## Description: run make to build packages
|
||||
## Variables:
|
||||
##
|
||||
---
|
||||
- name: Fetch source code
|
||||
vars:
|
||||
path: "{{ pkg.path }}"
|
||||
repo: "{{ pkg.repo }}"
|
||||
version: "{{ pkg.version | default(omit) }}"
|
||||
ansible.builtin.include_tasks: helpers/git.yml
|
||||
|
||||
- name: Run configure target
|
||||
when:
|
||||
- pkg.target.configure is defined
|
||||
register: make_configure
|
||||
community.general.make:
|
||||
chdir: "{{ pkg.path }}"
|
||||
target: "{{ pkg.target.configure.name }}"
|
||||
params: "{{ pkg.target.configure.params | default(omit) }}"
|
||||
|
||||
- name: Run build target
|
||||
when:
|
||||
- pkg.target.build is defined
|
||||
register: make_build
|
||||
community.general.make:
|
||||
chdir: "{{ pkg.path }}"
|
||||
target: "{{ pkg.target.build.name }}"
|
||||
params: "{{ target.params | default(omit) }}"
|
||||
|
||||
- name: Clean old installation
|
||||
vars:
|
||||
files: "{{ pkg.install_files }}"
|
||||
when:
|
||||
- pkg.install_files is defined
|
||||
ansible.builtin.include_tasks: helpers/clean_install.yml
|
||||
|
||||
- name: Run preinstall targets
|
||||
when:
|
||||
- pkg.targets.preinstall is defined
|
||||
loop: "{{ pkg.targets.preinstall }}"
|
||||
loop_control:
|
||||
loop_var: target
|
||||
register: make_preinstall
|
||||
community.general.make:
|
||||
chdir: "{{ pkg.path }}"
|
||||
target: "{{ target.name }}"
|
||||
params: "{{ target.params | default(omit) }}"
|
||||
|
||||
- name: Run install target
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
when:
|
||||
- pkg.targets.install is defined
|
||||
register: make_install
|
||||
community.general.make:
|
||||
chdir: "{{ pkg.path }}"
|
||||
target: "{{ pkg.targets.install.name }}"
|
||||
params: "{{ pkg.targets.install.params | default(omit) }}"
|
||||
|
||||
- name: Run postinstall targets
|
||||
when:
|
||||
- pkg.targets.postinstall is defined
|
||||
loop: "{{ pkg.targets.postinstall }}"
|
||||
loop_control:
|
||||
loop_var: target
|
||||
register: make_postinstall
|
||||
community.general.make:
|
||||
chdir: "{{ pkg.path }}"
|
||||
target: "{{ target.name }}"
|
||||
params: "{{ target.params | default(omit) }}"
|
||||
18
tasks/helpers/nerdfont_config.yml
Normal file
18
tasks/helpers/nerdfont_config.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Generate nerdfont configs
|
||||
when:
|
||||
- "__nerdfonts[nf] is defined"
|
||||
ansible.builtin.set_fact:
|
||||
__font_config:
|
||||
extract_to: "{{ path_archive }}/nerdfonts/{{ nf }}"
|
||||
url: "{{ nerdfonts.base_url }}/{{ __nerdfonts[nf]['archive'] | default(nf) }}.tar.xz"
|
||||
name: "{{ __nerdfonts[nf]['archive'] | default(nf) }}.tar.xz"
|
||||
links:
|
||||
- from: "{{ path_archive }}/nerdfonts/{{ nf }}"
|
||||
to: "{{ install_prefix }}/{{ nerdfonts_install_path }}/{{ nf }}"
|
||||
force: true
|
||||
|
||||
- name: Append config to pkg archive
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + [__font_config] }}"
|
||||
13
tasks/helpers/npm.yml
Normal file
13
tasks/helpers/npm.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Dump npm pkg
|
||||
ansible.builtin.debug:
|
||||
var: pkg
|
||||
- name: Install npm
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
community.general.npm:
|
||||
global: "{{ pkg.global | default(true) }}"
|
||||
name: "{{ pkg.name }}"
|
||||
version: "{{ pkg.version | default('latest') }}"
|
||||
state: "{{ pkg.state | default('present') }}"
|
||||
17
tasks/helpers/pipx.yml
Normal file
17
tasks/helpers/pipx.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Helper: pipx.yml
|
||||
## Description: modular approach to installing pip applications
|
||||
## Variables:
|
||||
## name: the name of the pip package to install
|
||||
---
|
||||
- name: Install pipx {{ pkg.name }}
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
environment:
|
||||
PIPX_HOME: "{{ path_pipx }}"
|
||||
PIPX_BIN_DIR: "{{ path_bin }}"
|
||||
community.general.pipx:
|
||||
executable: "{{ pipx_exec }}"
|
||||
name: "{{ pkg.name }}"
|
||||
state: latest
|
||||
20
tasks/helpers/symlink.yml
Normal file
20
tasks/helpers/symlink.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Helper: symlink.yml
|
||||
## Description: symlink source to target
|
||||
## Variables:
|
||||
## - from: the source of the symlink
|
||||
## - to: path of the symlink
|
||||
## - force: _optional_, force create the symlink
|
||||
---
|
||||
- name: Create symlinks
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
loop: "{{ links }}"
|
||||
loop_control:
|
||||
loop_var: link
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
path: "{{ link.to }}"
|
||||
src: "{{ link.from }}"
|
||||
force: "{{ link.force | default(omit) }}"
|
||||
36
tasks/helpers/zig.yml
Normal file
36
tasks/helpers/zig.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
# vim : set filetype=yaml.ansible :
|
||||
#
|
||||
## Helper: zig.yml
|
||||
## Description: build and install zig based packages
|
||||
## Variables: dict of key:value pairs
|
||||
## source_path: Destination path when cloning/extracting
|
||||
## git: passed into helpers/git.yml if present. See that for required dict keys
|
||||
## archive: passed into helpers/archive.yml to extract if present. See that for required dict keys
|
||||
## prefix: install prefix
|
||||
## flags: flags to pass to zig build
|
||||
---
|
||||
- name: Clone git repository if it exists
|
||||
when:
|
||||
- pkg.git is defined
|
||||
vars:
|
||||
path: "{{ pkg.source_path }}"
|
||||
repo: "{{ pkg.git.repo }}"
|
||||
depth: "{{ pkg.git.depth | default(omit) }}"
|
||||
force: "{{ pkg.git.force | default(omit) }}"
|
||||
recursive: "{{ pkg.git.recursive | default(omit) }}"
|
||||
version: "{{ pkg.version | default(omit) }}"
|
||||
ansible.builtin.include_tasks: helpers/git.yml
|
||||
|
||||
- name: Download and extract source archive
|
||||
when:
|
||||
- pkg.archive is defined
|
||||
ansible.builtin.include_tasks: helpers/archive.yml
|
||||
|
||||
- name: Ensure facts are set
|
||||
ansible.builtin.set_fact:
|
||||
zbf: "{{ pkg.build_flags | default([]) }}"
|
||||
|
||||
- name: Zig build and install
|
||||
ansible.builtin.command:
|
||||
argv: "{{ ['zig', 'build' '-p', install_prefix] + zbf }}"
|
||||
chdir: "{{ pkg.source_path }}"
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user