fixing packages for new style

This commit is contained in:
Matthew Stobbs
2025-02-19 22:23:47 -07:00
parent 89f013bac9
commit 48e67be99b
17 changed files with 152 additions and 172 deletions

View File

@@ -1,7 +1,12 @@
# vim: set filetype=yaml.ansible :
---
install_prefix: "{{ default_install_prefix }}"
install_method: flatpak
dobecome: true
owner: root
group: root
- name: Set bitwarden install method
ansible.builtin.set_fact:
bw:
method: "{{ pkgconfig.bitwarden.method[ansible_distribution] | default('appimage') }}"
- name: Set bitwarden config
ansible.builtin.set_fact:
bw:
pkg: "{{ pkgconfig.bitwarden[bw.method] }}"
method: "{{ bw.method }}"

View File

@@ -1,10 +1,15 @@
# vim: set filetype=yaml.ansible :
---
install:
- CascadiaCode
- FiraCode
- Hasklig
- Lilex
- Monoid
- NerdFontsSymbolsOnly
system_install: false
- name: Set facts for nerdfonts
ansible.builtin.set_fact:
nerdfonts:
fonts:
- CascadiaCode
- FiraCode
- Hasklig
- Lilex
- Monoid
- NerdFontsSymbolsOnly
install_path: "{{ path_prefix }}/{{ pkgconfig.nerdfonts.path }}"
base_url: "{{ pkgconfig.nerdfonts.base_url }}"
force_install: "{{ pkgconfig.force_install_nerdfonts | default(false) }}"

24
tasks/config/zfs.yml Normal file
View File

@@ -0,0 +1,24 @@
---
- name: Set zfs facts for RedHat based distros
when:
- ansible_os_family == 'RedHat'
block:
- name: Set distro name
ansible.builtin.set_fact:
rhname: "{%if ansible_distribution == 'Fedora' %}fedora{% else %}epel{% endif %}"
- name: Get rpm_dist for RedHat
changed_when: false
register: rpm_dist
ansible.builtin.command: # is there a better way to get this?
cmd: rpm --eval "%{dist}"
- 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: "{{ pkgconfig.zfs.build_deps[ansible_os_family] }}"
pkgs: "{{ pkgconfig.zfs.pkgs[ansible_os_family] }}"
release: "{{ ansible_distribution_release }}"
gpg_key: "{{ pkgconfig.zfs.gpg_key }}"
gpg_fp: "{{ pkgconfig.zfs.gpg_key_fingerprint }}"