add file lists to ghostty and neovim src install

This commit is contained in:
Matthew Stobbs
2025-03-18 07:22:21 -06:00
parent e799d616a0
commit 040ea8339b
6 changed files with 2633 additions and 16 deletions

View File

@@ -1,6 +1,24 @@
# vim: set filetype=yaml.ansible :
---
- name: Clean existing install
when:
- ghostty.clean
become: "{{ ext_become }}"
loop: "{{ ghostty.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
- name: Check if ghostty is installed
register: stat_ghostty_inst
ansible.builtin.stat:
path: "{{ path.prefix }}/bin/ghostty"
- name: Install and build source for {{ pkg }}
when:
- not stat_ghostty_inst.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git:
@@ -14,4 +32,5 @@
register: c_ghostty_build
ansible.builtin.command:
chdir: "{{ d_tempdir.path }}/ghostty"
creates: "{{ path.prefix }}/bin/ghostty"
cmd: "zig build -p {{ path.prefix }} -Doptimize={{ ghostty.optimize }}"