Remove tempdir if download fails

This commit is contained in:
Sven Velt 2024-07-09 20:48:29 +02:00
parent 47fe27ee90
commit d24657ee85

View file

@ -7,17 +7,17 @@
run_once: True
- 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: "(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/