working on nerdfonts still
This commit is contained in:
@@ -2,20 +2,33 @@
|
||||
---
|
||||
- name: Set package_home_base for Darwin
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
- ansible_facts["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_facts["system"] == 'Linux' or
|
||||
ansible_facts["os_family"] == 'FreeBSD'
|
||||
ansible.builtin.set_fact:
|
||||
package_home_base: /home
|
||||
|
||||
- name: Set default paths
|
||||
ansible.builtin.set_fact:
|
||||
path_appimage: "{{ install_prefix }}/appimage"
|
||||
path_archive: "{{ install_prefix }}/archive"
|
||||
path_bin: "{{ install_prefix }}/bin"
|
||||
path_cargo: "{{ install_prefix }}/cargo"
|
||||
path_git: "{{ install_prefix }}/git"
|
||||
path_go: "{{ install_prefix }}/go"
|
||||
path_pipx: "{{ install_prefix }}/pipx"
|
||||
store_path: "{{ ansible_facts['user_dir'] }}/.cache/ansible_role_package"
|
||||
path_lib: "{{ install_prefix }}/lib"
|
||||
|
||||
|
||||
- name: Set Linux specific facts
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pipx_exec: "/usr/bin/pipx"
|
||||
path_lib: lib64
|
||||
@@ -23,13 +36,13 @@
|
||||
|
||||
- name: Set alpine linux specific facts
|
||||
when:
|
||||
- ansible_os_family == 'Alpine'
|
||||
- ansible_facts["os_family"] == 'Alpine'
|
||||
ansible.builtin.set_fact:
|
||||
path_lib: lib
|
||||
|
||||
- name: Set dist code if RedHat based
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ansible_facts["os_family"] == 'RedHat'
|
||||
changed_when: false
|
||||
register: rpm_dist
|
||||
ansible.builtin.command:
|
||||
@@ -37,8 +50,8 @@
|
||||
|
||||
- name: Set macOS specific facts
|
||||
when:
|
||||
- ansible_distribution == 'MacOSX' or
|
||||
ansible_distribution == 'MacOS'
|
||||
- ansible_facts["distribution"] == 'MacOSX' or
|
||||
ansible_facts["distribution"] == 'MacOS'
|
||||
ansible.builtin.set_fact:
|
||||
brewtap: [] # homebrew taps to add
|
||||
pipx_exec: "/opt/homebrew/bin/pipx" # pipx executable
|
||||
|
||||
Reference in New Issue
Block a user