Working on source packages
Signed-off-by: Matthew Stobbs <matthew@stobbs.ca>
This commit is contained in:
@@ -8,51 +8,15 @@
|
||||
|
||||
- name: Set package_home_base for Linux
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- ansible_system == 'Linux' or
|
||||
ansible_os_family == 'FreeBSD'
|
||||
ansible.builtin.set_fact:
|
||||
package_home_base: /home
|
||||
|
||||
- name: Set defaults paths
|
||||
ansible.builtin.set_fact:
|
||||
install_prefix: "{{ install_prefix | default(default_install_prefix) }}"
|
||||
default_store_path: "{{ ansible_user_dir }}/.cache/ansible_role_package"
|
||||
default_path_appimage: "{{ install_prefix | default(default_install_prefix) }}/appimage"
|
||||
default_path_archive: "{{ install_prefix | default(default_install_prefix) }}/archive"
|
||||
default_path_bin: "{{ install_prefix | default(default_install_prefix) }}/bin"
|
||||
default_path_cargo: "{{ install_prefix | default(default_install_prefix) }}/cargo"
|
||||
default_path_go: "{{ install_prefix | default(default_install_prefix) }}/go"
|
||||
default_path_pipx: "{{ install_prefix | default(default_install_prefix) }}/pipx"
|
||||
|
||||
- name: Set install variables
|
||||
ansible.builtin.set_fact:
|
||||
store_path: "{{ store_path | default(default_store_path) }}"
|
||||
path_appimage: "{{ path_appimage | default(default_path_appimage) }}"
|
||||
path_archive: "{{ path_archive | default(default_path_archive) }}"
|
||||
path_bin: "{{ path_bin | default(default_path_bin) }}"
|
||||
path_cargo: "{{ path_cargo | default(default_path_cargo) }}"
|
||||
path_go: "{{ path_go | default(default_path_go) }}"
|
||||
path_pipx: "{{ path_pipx | default(default_path_pipx) }}"
|
||||
|
||||
- name: Set OS independant facts
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: [] # packages installed via prebuilt archive
|
||||
pkg_cargo: [] # rust packages from cargo using `cargo install`
|
||||
pkg_cargo_build: [] # rust packages using `cargo build` before install
|
||||
pkg_go: [] # go applications
|
||||
pkg_npm: [] # npm commands
|
||||
pkg_pipx: [] # pipx packages
|
||||
pkg_src: [] # packages built from source
|
||||
pkg_sys: [] # system package manager packages, homebrew on macOS, dnf for RedHat based, apt for Debian Based
|
||||
pkg_zig: [] # zig packages
|
||||
|
||||
- name: Set Linux specific facts
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
flatpak_remotes: "{{ default_flatpak_remotes }}"
|
||||
pkg_appimage: [] # appimages to install
|
||||
pkg_flatpak: [] # flatpak packages to install
|
||||
pkg_snap: [] # snpacraft.io packages
|
||||
pipx_exec: "/usr/bin/pipx"
|
||||
path_lib: lib64
|
||||
root_prefix: /usr/local
|
||||
|
||||
Reference in New Issue
Block a user