# vim: set filetype=yaml.ansible : --- - name: Add ghostty block: - name: Load ghostty config ansible.builtin.include_tasks: file: config/ghostty.yml - name: Append ghostty to pkg_src when: - ghostty.method == 'src' ansible.builtin.set_fact: pkg_src: "{{ pkg_src + ghostty.pkg }}" pkg_sys: "{{ pkg_sys + ghostty.build_deps }}" - name: Append ghostty to pkg_appimage when: - ghostty.method == 'appimage' ansible.builtin.set_fact: pkg_appimage: "{{ pkg_appimage + ghostty }}" - name: Install ghostty via package manager when: - ghostty.method == 'sys' block: - name: Enable repo for ghostty when: - ansible_distribution == 'Fedora' changed_when: true ansible.builtin.get_url: mode: '0644' decompress: false backup: false url: "{{ ghostty.pkg_repo.url }}" dest: "{{ ghostty.pkg_repo.dest }}" - name: Append ghostty to pkg_sys when: - ansible_distriubtion ansible.builtin.set_fact: pkg_sys: "{{ pkg_sys + ghostty.pkg }}" - name: Append ghostty to pkg_cask when: - ghostty.method == 'cask' ansible.builtin.set_fact: pkg_cask: "{{ pkg_cask + ghostty.pkg }}" - name: Set ghostty_configured ansible.builtin.set_fact: ghostty_configured: true