25 lines
948 B
YAML
25 lines
948 B
YAML
# vim: set filetype=yaml.ansible :
|
|
---
|
|
- name: Set ghostty install method
|
|
ansible.builtin.set_fact:
|
|
ghostty:
|
|
method: "{{ pkgconfig.ghostty.method[ansible_distribution] | default(pkgconfig.ghostty.method.default) }}"
|
|
|
|
- name: Set ghostty config
|
|
ansible.builtin.set_fact:
|
|
ghostty:
|
|
arch: "{{ pkgconfig.ghostty.archmap[ansible_architecture] }}"
|
|
deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
|
|
vers: "{{ pkgconfig.ghostty.version }}"
|
|
pkg: "{{ pkgconfig.ghosty[ghostty.method] }}"
|
|
|
|
- name: Set ghostty config for appimage install
|
|
when:
|
|
- ghostty.method == 'appimage'
|
|
ansible.builtin.set_fact:
|
|
ghostty:
|
|
method: appimage
|
|
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"
|