Begin adding yay as a package manager so that themes^Can be installed seamlessly.

This commit is contained in:
2026-07-31 14:53:03 -07:00
parent 99cf761528
commit 712b0b8ffe
5 changed files with 85 additions and 4 deletions
+50
View File
@@ -0,0 +1,50 @@
---
# 20260731 - Hyperling
# Install the AUR on pacman-related distros.
- name: General | Software | AUR | Facts 01
set_fact:
aur_user: aur-user
aur_build_dir: ~/src
aur_helper: yay
aur_helper_url: https://aur.archlinux.org/yay-bin.git
- name: General | Software | AUR | Facts 02
set_fact:
aur_helper_dir: "{{ aur_build_dir }}/{{ aur_helper }}"
- name: General | Software | AUR | User
user:
name: "{{ aur_user }}"
groups: wheel
create_home: true
- name: General | Software | AUR | Sudoers
lineinfile:
path: /etc/sudoers.d/aurbuilder
line: "{{ aur_user }} ALL=(ALL) NOPASSWD: /usr/bin/pacman"
create: true
mode: '0440'
validate: 'visudo -cf %s'
- name: General | Software | AUR | Check
command: "which {{ aur_helper }}"
register: yay_check
changed_when: false
failed_when: false
- name: General | Software | AUR | Install
block:
- name: General | Software | AUR | Install | Clone Repo
git:
repo: "{{ aur_helper_url }}"
dest: "{{ aur_helper_dir }}"
- name: General | Software | AUR | Install | Build & Integrate
command: "cd {{ aur_helper_dir }} && makepkg -si --noconfirm"
changed_when: true
when: yay_check.rc != 0
become_user: "{{ aur_user }}"
+5 -4
View File
@@ -61,6 +61,7 @@
- "{{ ntp_server }}"
- "{{ dig }}"
- "{{ tmux }}"
- "{{ base_devel }}"
state: present
- name: General | Software | Packages | Install Software (DEV)
@@ -92,13 +93,13 @@
when: ansible_distribution == "Debian"
ignore_errors: yes
- name: General | Software | Services | Install killall (Looking at you, Debian)
- name: General | Software | Packages | Install killall (Looking at you, Debian)
package:
name: psmisc
state: present
when: ansible_distribution == "Debian"
- name: General | Software | Services | Install "Bloat" (Looking at you, Arch Base)
- name: General | Software | Packages | Install "Bloat" (Looking at you, Arch Base)
package:
name:
- which
@@ -106,7 +107,7 @@
state: present
when: ansible_distribution == "Archlinux"
- name: General | Software | Services | Install Fix (Looking at you, openSUSE)
- name: General | Software | Packages | Install Fix (Looking at you, openSUSE)
package:
name:
# openSUSE Tumbleweed comes without gnome-control-center being able to open
@@ -135,7 +136,7 @@
state: absent
# Ubuntu still uses snap for critical components like GNOME, must keep.
- name: General | Software | Services | Disable Snap Daemon
- name: General | Software | Packages | Disable Snap Daemon
service:
name: snapd
pattern: snapd