2021-03-31 07:31:13 +00:00
|
|
|
---
|
2024-01-04 11:36:26 +00:00
|
|
|
- name: Look for already installed kitty terminfo file
|
|
|
|
stat:
|
|
|
|
path: /usr/share/terminfo/x/xterm-kitty
|
|
|
|
register: kitty_terminfo_file
|
2021-03-31 07:31:13 +00:00
|
|
|
|
|
|
|
|
2021-03-31 07:35:31 +00:00
|
|
|
- name: 'Try to install "kitty-terminfo"'
|
|
|
|
package:
|
|
|
|
name: kitty-terminfo
|
|
|
|
state: latest
|
2024-01-04 11:36:26 +00:00
|
|
|
update_cache: yes
|
2021-03-31 07:35:31 +00:00
|
|
|
ignore_errors: yes
|
|
|
|
register: kitty_terminfo_installed
|
2024-01-04 11:36:26 +00:00
|
|
|
when: kitty_terminfo_file.stat.exists == False
|
2021-03-31 07:31:13 +00:00
|
|
|
|
|
|
|
|
2021-03-31 07:35:31 +00:00
|
|
|
- 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
|
2021-03-31 07:31:13 +00:00
|
|
|
|
|
|
|
|