role.kitty-terminfo/tasks/main.yml

23 lines
546 B
YAML
Raw Normal View History

---
- name: Look for already installed kitty terminfo file
stat:
path: /usr/share/terminfo/x/xterm-kitty
register: kitty_terminfo_file
- name: 'Try to install "kitty-terminfo"'
package:
name: kitty-terminfo
state: latest
update_cache: yes
ignore_errors: yes
register: kitty_terminfo_installed
when: kitty_terminfo_file.stat.exists == False
- name: "If no kitty(-terminfo) available, install manually"
include_tasks: manual.yml
2024-07-09 18:49:11 +00:00
when: kitty_terminfo_installed is defined and kitty_terminfo_installed is failed