Ansible: Add X.org configuration

- Detect if X.org is installed with a small fact script
- Symlink Xdefaults file if X.org is installed
This commit is contained in:
Eryn Wells 2025-02-19 13:08:20 -08:00
parent 29fdc610bb
commit 687083bf31
4 changed files with 39 additions and 0 deletions

9
Ansible/facts/xorg.fact Normal file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env zsh
if which xorg 1>/dev/null 2>&1; then
xorg_exists="true"
else
xorg_exists="false"
fi
echo "{ \"exists\": ${xorg_exists} }"