32 lines
907 B
YAML
32 lines
907 B
YAML
---
|
||
- 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 user’s 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 }}"
|