blob: ac6a176bbcb7640d2ee6d39ccb4e5b191ff1c35b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
- name: Setup alacritty terminfo
tags:
- alacritty
block:
- name: Detect if alacritty terminfo is present
ansible.builtin.stat:
path: '/usr/share/terminfo/a/alacritty'
register: alacritty_terminfo
- name: Install alacritty terminfo
when: not alacritty_terminfo.stat.exists
block:
- name: Ensure tic is installed
when: ansible_distribution_file_variety == "SUSE"
community.general.zypper:
name: ncurses-devel
state: present
- name: Create temporary file for the terminfo file
ansible.builtin.tempfile:
state: file
register: temp_terminfo
- name: Push alacritty terminfo file
ansible.builtin.copy:
src: "alacritty.terminfo"
dest: "{{ temp_terminfo.path }}"
mode: "644"
- name: Install alacritty terminfo
ansible.builtin.command: sudo tic -xe alacritty,alacritty-direct "{{ temp_terminfo.path }}"
|