Cleaning up of gen roles

This commit is contained in:
2025-07-11 19:19:24 +02:00
parent 33276263b0
commit 25e4a50974
101 changed files with 48 additions and 56 deletions

View File

@@ -0,0 +1,22 @@
- name: install yay
community.general.pacman:
name:
- yay
- patch
- base-devel
state: present
- name: Create the `aur_builder` user
become: yes
ansible.builtin.user:
name: aur_builder
create_home: yes
group: wheel
- name: Allow the `aur_builder` user to run `sudo pacman` without a password
become: yes
ansible.builtin.lineinfile:
path: /etc/sudoers.d/11-install-aur_builder
line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
create: yes
validate: 'visudo -cf %s'