add file lists to ghostty and neovim src install
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user