43 lines
1.7 KiB
YAML
43 lines
1.7 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
|
|
when:
|
|
- ghostty.method == 'src'
|
|
ansible.builtin.set_fact:
|
|
ghostty:
|
|
method: "{{ ghostty.method }}"
|
|
arch: "{{ pkgconfig.ghostty.archmap[ansible_architecture] }}"
|
|
clean: "{{ pkgconfig_ghostty_clean | default(default.clean_src) }}"
|
|
deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
|
|
vers: "{{ pkgconfig.ghostty.version }}"
|
|
pkg: "{{ pkgconfig.ghostty[ghostty.method] }}"
|
|
repo: "{{ pkgconfig.ghostty.git_repo }}"
|
|
build_deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
|
|
optimize: "{{ pkgconfig.ghostty.optimize }}"
|
|
installed_files: "{{ pkgconfig.ghostty.build_installed_files }}"
|
|
|
|
- name: Set ghostty package manager install
|
|
when:
|
|
- ghostty.method == 'sys' or
|
|
ghostty.method == 'cask'
|
|
ansible.builtin.set_fact:
|
|
ghostty:
|
|
method: "{{ ghostty.method }}"
|
|
pkg: "{{ pkgconfig.ghostty[ghostty.method] }}"
|
|
pkg_repo: "{{ pkgconfig.ghostty.pkg_repo[ansible_distribution] | default(omit) }}"
|
|
|
|
- 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"
|