Files
ansible_role_package/tasks/pkgs/ghostty.yml
Matthew Stobbs d1e8957f94 fix packages
2025-02-22 14:59:18 -07:00

39 lines
976 B
YAML

# vim: set filetype=yaml.ansible :
---
- name: Source pkg installation
when:
- ghostty.method == 'src'
- ansible_distribution != 'MacOSX'
notify:
- Depend zig
block:
- name: Build ghostty from source
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ghostty.deps }}"
pkg_src: "{{ pkg_src + ['ghostty'] }}"
- name: Appimage installation
when:
- ghostty.method == 'appimage'
- ansible_distribution != 'MacOSX'
ansible.builtin.set_fact:
pkg_appimage: "{{ pkg_appimage + ghostty_vars.appimage }}"
- name: Sys pkg installation
when:
- ghostty.method == 'sys'
block:
- name: Append to pkgs
when:
- ansible_distribution == 'Fedora'
notify:
- Depend terra repo
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['ghostty'] }}"
- name: Cask pkg installation
when:
- ghostty.method == 'brew'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['ghostty'] }}"