diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2022-06-26 16:48:49 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2022-06-26 16:48:49 +0200 |
| commit | 207758226a533c1c5d8061335c7279f3392f696c (patch) | |
| tree | 61a3492a641c29e21097d4407631990471517fa4 /tasks | |
| download | alacritty_terminfo-207758226a533c1c5d8061335c7279f3392f696c.tar.gz alacritty_terminfo-207758226a533c1c5d8061335c7279f3392f696c.zip | |
initial commit
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/main.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..08f2722 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,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" + 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 }}" + + - name: Install alacritty terminfo + ansible.builtin.command: sudo tic -xe alacritty,alacritty-direct "{{ temp_terminfo.path }}" |
