56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
# vim: set filetype=yaml.ansible :
|
|
---
|
|
- name: Add ghostty
|
|
when:
|
|
- ghostty_configured is undefined
|
|
block:
|
|
- name: Load ghostty config
|
|
ansible.builtin.include_tasks:
|
|
file: config/ghostty.yml
|
|
|
|
- name: Source ghostty pkg installation
|
|
when:
|
|
- ghostty.method == 'src'
|
|
- ansible_distribution != 'MacOSX'
|
|
block:
|
|
- name: Append ghostty build deps to pkg_sys
|
|
ansible.builtin.set_fact:
|
|
pkg_sys: "{{ pkg_sys + ghostty.build_deps }}"
|
|
|
|
- name: Append ghostty to pkg_src
|
|
notify:
|
|
- Depend zig
|
|
changed_when: true
|
|
ansible.builtin.set_fact:
|
|
pkg_src: "{{ pkg_src + ghostty.pkg }}"
|
|
|
|
- name: Append ghostty to pkg_appimage
|
|
when:
|
|
- ghostty.method == 'appimage'
|
|
- ansible_distribution != 'MacOSX'
|
|
ansible.builtin.set_fact:
|
|
pkg_appimage: "{{ pkg_appimage + ghostty }}"
|
|
|
|
- name: Sys pkg installation
|
|
when:
|
|
- ghostty.method == 'sys'
|
|
block:
|
|
- name: Append ghostty to pkg_sys
|
|
when:
|
|
- ansible_distribution == 'Fedora'
|
|
notify:
|
|
- Depend terra repo
|
|
changed_when: true
|
|
ansible.builtin.set_fact:
|
|
pkg_sys: "{{ pkg_sys + ghostty.pkg }}"
|
|
|
|
- name: Append ghostty to pkg_cask
|
|
when:
|
|
- ghostty.method == 'brew'
|
|
ansible.builtin.set_fact:
|
|
pkg_cask: "{{ pkg_cask + ghostty.pkg }}"
|
|
|
|
- name: Set ghostty_configured
|
|
ansible.builtin.set_fact:
|
|
ghostty_configured: true
|