xbazzi e7ba86f10a
All checks were successful
Simple Mirror to GitHub / mirror (push) Successful in 35s
Feat: add scylladb + a bunch of stuff I forgot to commit earlier
2025-08-21 23:43:52 -06:00

40 lines
1.2 KiB
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.

---
# Pre-requisite:
# infocmp -a xterm-kitty > ~/.xterm-kitty.terminfo
- name: Upload xterm-kitty.terminfo to each users home
ansible.builtin.copy:
src: "/home/xbazzi/.xterm-kitty.terminfo"
dest: "{{ '/root' if item == 'root' else '/home/' + item }}/.xterm-kitty.terminfo"
# dest: "/home/{{ item }}/.xterm-kitty.terminfo"
owner: "{{ item }}"
group: "{{ item }}"
mode: '0644'
loop: "{{ users + ['root']}}"
# - name: Compile terminfo for each user
# ansible.builtin.command: >
# tic -x -o "{{ '/root' if item == 'root' else '/home/' + item }}/.terminfo {{ '/root' if item == 'root' else '/home/' + item }}/.xterm-kitty.terminfo"
# become: true
# become_user: root #"{{ item }}"
# loop: "{{ users + ['root']}}"
- name: Compile terminfo for each user
ansible.builtin.command:
argv:
- tic
- -x
- -o
- "{{ item_home }}/.terminfo"
- "{{ item_home }}/.xterm-kitty.terminfo"
vars:
item_home: "{{ '/root' if item == 'root' else '/home/' + item }}"
loop: "{{ users + ['root'] }}"
- name: Clean up xterm-kitty.terminfo from home directory
ansible.builtin.file:
path: "/home/{{ item }}/.xterm-kitty.terminfo"
state: absent
loop: "{{ users + ['root']}}"