29 lines
917 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
# Pre-requisite:
# infocmp -a xterm-kitty > ~/.xterm-kitty.terminfo
# - name: Check if kitty term-info exists
# ansible.builtin.stat:
# path: "/home/javi/.xterm-kitty.terminfo"
# register: file_check
# - name: Fail if file does not exist
# ansible.builtin.fail:
# msg: "Kitty term info does't exist. Please run: infocmp -a xterm-kitty > ~/.xterm-kitty.terminfo"
# when: not file_check.stat.exists
- name: Copy pre-generated kitty terminfo to remote users
copy:
src: "/home/javi/.xterm-kitty.terminfo"
dest: /home/javi/.xterm-kitty.terminfo
owner: "javi"
group: "javi"
mode: '0644'
- name: Compile terminfo for each user
ansible.builtin.command: >
tic -x -o /home/javi/.terminfo/ /home/javi/.xterm-kitty.terminfo
- name: Clean up xterm-kitty.terminfo from home directory
ansible.builtin.file:
path: "/home/javi/.xterm-kitty.terminfo"
state: absent