48 lines
1,000 B
YAML
48 lines
1,000 B
YAML
---
|
|
- name: Create tempdir
|
|
tempfile:
|
|
state: directory
|
|
register: kitty_tempdir
|
|
delegate_to: localhost
|
|
run_once: True
|
|
|
|
|
|
- name: "(Block) Install terminfo dir and file"
|
|
block:
|
|
|
|
- name: Download actuel kitty terminfo
|
|
get_url:
|
|
url: "https://github.com/kovidgoyal/kitty/blob/master/terminfo/x/xterm-kitty?raw=true"
|
|
dest: "{{ kitty_tempdir.path }}/xterm-kitty"
|
|
delegate_to: localhost
|
|
run_once: True
|
|
|
|
|
|
- name: Create terminfo dir
|
|
file:
|
|
path: /usr/share/terminfo/x/
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: "0755"
|
|
force: False
|
|
|
|
- name: Copy terminfo
|
|
copy:
|
|
src: "{{ kitty_tempdir.path }}/xterm-kitty"
|
|
dest: "/usr/share/terminfo/x/xterm-kitty"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
|
|
always:
|
|
|
|
- name: Delete tempdir
|
|
file:
|
|
path: "{{ kitty_tempdir.path }}"
|
|
state: absent
|
|
delegate_to: localhost
|
|
run_once: True
|
|
|
|
|