48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
# vim: set filetype=yaml.ansible :
|
|
---
|
|
- name: Set package_home_base for Darwin
|
|
when:
|
|
- ansible_system == 'Darwin'
|
|
ansible.builtin.set_fact:
|
|
package_home_base: /Users
|
|
|
|
- name: Set package_home_base for Linux
|
|
when:
|
|
- ansible_system == 'Linux' or
|
|
ansible_os_family == 'FreeBSD'
|
|
ansible.builtin.set_fact:
|
|
package_home_base: /home
|
|
|
|
- name: Set Linux specific facts
|
|
when:
|
|
- ansible_system == 'Linux'
|
|
ansible.builtin.set_fact:
|
|
pipx_exec: "/usr/bin/pipx"
|
|
path_lib: lib64
|
|
root_prefix: /usr/local
|
|
|
|
- name: Set alpine linux specific facts
|
|
when:
|
|
- ansible_os_family == 'Alpine'
|
|
ansible.builtin.set_fact:
|
|
path_lib: lib
|
|
|
|
- name: Set dist code if RedHat based
|
|
when:
|
|
- ansible_os_family == 'RedHat'
|
|
changed_when: false
|
|
register: rpm_dist
|
|
ansible.builtin.command:
|
|
cmd: rpm --eval "%{dist}"
|
|
|
|
- name: Set macOS specific facts
|
|
when:
|
|
- ansible_distribution == 'MacOSX' or
|
|
ansible_distribution == 'MacOS'
|
|
ansible.builtin.set_fact:
|
|
brewtap: [] # homebrew taps to add
|
|
pipx_exec: "/opt/homebrew/bin/pipx" # pipx executable
|
|
pkg_cask: [] # homebrew casks
|
|
pkg_tap: [] # homebrew tap packages
|
|
path_lib: lib # macos shared library path
|