Files
ansible_role_package/tasks/src/neovide.yml
Matthew Stobbs 59a31858f4 update ghostty
- refactor remaiing source packages to new standard
2025-03-29 15:21:34 -06:00

48 lines
1.2 KiB
YAML

# vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- neovide.clean
become: "{{ ext_become }}"
loop: "{{ neovide.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ path.prefix }}/{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_neovide_inst
ansible.builtin.stat:
path: "{{ path.bin }}/neovide"
- name: Build and install {{ pkg }}
when:
- not state_neovide_inst.stat.exists
block:
- name: Ensure directories exist
become: true
loop:
- share/icons
- share/applications
loop_control:
loop_var: _dir
ansible.builtin.file:
state: directory
path: "{{ path.prefix }}/{{ _dir }}"
mode: '0755'
- name: Copy neovide icon
become: true
ansible.builtin.copy:
src: neovide/icon.png
dest: "{{ path.prefix }}/share/icons/neovide.png"
mode: '0644'
- name: Copy neovide.desktop
become: true
ansible.builtin.template:
src: neovide/neovide.desktop
dest: "{{ path.prefix }}/share/applications/neovide.desktop"
mode: '0644'