Begin adding yay as a package manager so that themes^Can be installed seamlessly.
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user