Files
ansible_role_package/tasks/config/ghostty.yml
2025-03-10 14:53:36 -06:00

27 lines
1.1 KiB
YAML

# 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
ansible.builtin.set_fact:
ghostty:
method: "{{ ghostty.method }}"
arch: "{{ pkgconfig.ghostty.archmap[ansible_architecture] }}"
deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
vers: "{{ pkgconfig.ghostty.version }}"
pkg: "{{ pkgconfig.ghostty[ghostty.method] }}"
build_deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
- 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"