From eb6d77de651d05976cba2d9ad8d0ff6d27a44c01 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Wed, 30 Aug 2023 17:03:59 +0200 Subject: [PATCH] roles(user/fonts): upload fonts Signed-off-by: Matej Focko --- playbooks/bootstrap.yml | 4 ++++ roles/user/fonts/tasks/main.yml | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 roles/user/fonts/tasks/main.yml diff --git a/playbooks/bootstrap.yml b/playbooks/bootstrap.yml index 24b486f..0029047 100644 --- a/playbooks/bootstrap.yml +++ b/playbooks/bootstrap.yml @@ -57,6 +57,10 @@ - role: user/terminals/kitty tags: kitty + # Install fonts + - role: user/fonts + tags: fonts + # Install Bitwarden CLI - role: user/secrets/bw tags: bw diff --git a/roles/user/fonts/tasks/main.yml b/roles/user/fonts/tasks/main.yml new file mode 100644 index 0000000..eecbbae --- /dev/null +++ b/roles/user/fonts/tasks/main.yml @@ -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 }}"