32 lines
907 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.

---
- name: Copy pre-generated kitty terminfo to remote users
copy:
src: /home/xbazzi/.xterm-kitty.terminfo
dest: /home/{{ item }}/xterm-kitty.terminfo
owner: "{{ item }}"
group: "{{ item }}"
mode: '0644'
loop: "{{ users }}"
- name: Upload xterm-kitty.terminfo to each users home
ansible.builtin.copy:
src: "/home/xbazzi/.xterm-kitty.terminfo"
dest: "/home/{{ item }}/xterm-kitty.terminfo"
owner: "{{ item }}"
group: "{{ item }}"
mode: '0644'
loop: "{{ users }}"
- name: Compile terminfo for each user
ansible.builtin.command: >
tic -x -o /home/{{ item }}/.terminfo /home/{{ item }}/xterm-kitty.terminfo
become: true
become_user: root #"{{ item }}"
loop: "{{ users }}"
- name: Clean up xterm-kitty.terminfo from home directory
ansible.builtin.file:
path: "/home/{{ item }}/xterm-kitty.terminfo"
state: absent
loop: "{{ users }}"