summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-01-23 15:12:16 +0100
committerAhmed Abdelhalim <[email protected]>2026-01-23 15:20:43 +0100
commitfdb9219aeba47860ba877b5bd44cdf96619d9cb1 (patch)
treed296472c43db750d226ea22f509f28021c85fa46
parentf5ade99064faaff547df2fd82c7d23908c872a7a (diff)
Add PT-Sans font to both debian and archlinux
The PT-Sans is only available using AUR on archlinux, hence implementing a role for fonts that are installed on arch using AUR
-rw-r--r--configure.yml1
-rw-r--r--molecule/archlinux-gnome/converge.yml1
-rw-r--r--molecule/archlinux/converge.yml1
-rw-r--r--roles/aur_font/meta/argument_specs.yml6
-rw-r--r--roles/aur_font/meta/main.yml12
-rw-r--r--roles/aur_font/tasks/main.yml10
-rw-r--r--roles/font/vars/debian.yml1
-rw-r--r--roles/hyprland/meta/main.yml1
-rw-r--r--roles/yay/tasks/main.yml2
9 files changed, 34 insertions, 1 deletions
diff --git a/configure.yml b/configure.yml
index 05c1588a..991ea46a 100644
--- a/configure.yml
+++ b/configure.yml
@@ -9,6 +9,7 @@
- role: "locales"
- role: "timezone"
- role: "font"
+ - role: "font_aur"
- role: "which"
- role: "bash"
- role: "man"
diff --git a/molecule/archlinux-gnome/converge.yml b/molecule/archlinux-gnome/converge.yml
index b43363e4..3150682c 100644
--- a/molecule/archlinux-gnome/converge.yml
+++ b/molecule/archlinux-gnome/converge.yml
@@ -76,6 +76,7 @@
- role: "which"
- role: "firefox"
- role: "font"
+ - role: "font_aur"
- role: "alacritty"
- role: "btop"
- role: "bluetui"
diff --git a/molecule/archlinux/converge.yml b/molecule/archlinux/converge.yml
index 86ce4bb3..daf42834 100644
--- a/molecule/archlinux/converge.yml
+++ b/molecule/archlinux/converge.yml
@@ -75,6 +75,7 @@
- role: "which"
- role: "firefox"
- role: "font"
+ - role: "font_aur"
- role: "alacritty"
- role: "btop"
- role: "bluetui"
diff --git a/roles/aur_font/meta/argument_specs.yml b/roles/aur_font/meta/argument_specs.yml
new file mode 100644
index 00000000..be51c8a9
--- /dev/null
+++ b/roles/aur_font/meta/argument_specs.yml
@@ -0,0 +1,6 @@
+---
+argument_specs:
+ main:
+ short_description: "Install fonts on ArchLinux using AUR"
+ description: "Install fonts on ArchLinux using AUR"
+ options: {}
diff --git a/roles/aur_font/meta/main.yml b/roles/aur_font/meta/main.yml
new file mode 100644
index 00000000..dd82ddcb
--- /dev/null
+++ b/roles/aur_font/meta/main.yml
@@ -0,0 +1,12 @@
+---
+dependencies:
+ - role: "yay"
+galaxy_info:
+ author: "a14m"
+ description: "Install fonts on ArchLinux using AUR"
+ license: "MIT"
+ min_ansible_version: "2.18"
+ platforms:
+ - name: "ArchLinux"
+ versions:
+ - "all"
diff --git a/roles/aur_font/tasks/main.yml b/roles/aur_font/tasks/main.yml
new file mode 100644
index 00000000..e7bf9228
--- /dev/null
+++ b/roles/aur_font/tasks/main.yml
@@ -0,0 +1,10 @@
+---
+- name: "Ensure AUR fonts are installed"
+ become: true
+ become_user: "aur_builder"
+ kewlfft.aur.aur:
+ name: "{{ item }}"
+ state: "present"
+ use: "yay"
+ loop:
+ - "ttf-paratype"
diff --git a/roles/font/vars/debian.yml b/roles/font/vars/debian.yml
index 019f8e59..06b8ca1b 100644
--- a/roles/font/vars/debian.yml
+++ b/roles/font/vars/debian.yml
@@ -2,6 +2,7 @@
font_packages:
- "fonts-jetbrains-mono"
- "fonts-recommended"
+ - "fonts-paratype"
- "fonts-noto"
- "fonts-noto-cjk"
- "fonts-noto-color-emoji"
diff --git a/roles/hyprland/meta/main.yml b/roles/hyprland/meta/main.yml
index 05bd0823..f8cd9ed4 100644
--- a/roles/hyprland/meta/main.yml
+++ b/roles/hyprland/meta/main.yml
@@ -7,6 +7,7 @@ dependencies:
- role: "pipewire"
- role: "brightnessctl"
- role: "font"
+ - role: "aur_font"
- role: "waybar"
- role: "hyprtheme"
- role: "hyprcursor"
diff --git a/roles/yay/tasks/main.yml b/roles/yay/tasks/main.yml
index 5759aa6c..59af378c 100644
--- a/roles/yay/tasks/main.yml
+++ b/roles/yay/tasks/main.yml
@@ -44,7 +44,7 @@
- name: "Create the 'aur_builder' user"
become: true
ansible.builtin.user:
- name: aur_builder
+ name: "aur_builder"
create_home: true
group: wheel