roles(user/fonts): upload fonts

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2023-08-30 17:03:59 +02:00
parent d449c3ae2c
commit eb6d77de65
Signed by: mfocko
GPG key ID: 7C47D46246790496
2 changed files with 20 additions and 0 deletions

View file

@ -57,6 +57,10 @@
- role: user/terminals/kitty - role: user/terminals/kitty
tags: kitty tags: kitty
# Install fonts
- role: user/fonts
tags: fonts
# Install Bitwarden CLI # Install Bitwarden CLI
- role: user/secrets/bw - role: user/secrets/bw
tags: bw tags: bw

View file

@ -0,0 +1,16 @@
---
- name: Create directory for fonts
ansible.builtin.file:
path: ~/.local/share/fonts
state: directory
mode: 0700
owner: "{{ target_user }}"
group: "{{ target_user }}"
- name: Upload fonts from current installation
ansible.builtin.copy:
src: ~/.local/share/fonts/
dest: ~/.local/share/fonts/
mode: 0755
owner: "{{ target_user }}"
group: "{{ target_user }}"