Optimized performance by moving multiple similar when includes to own tasks file

This commit is contained in:
2025-08-11 13:15:31 +02:00
parent 6318611931
commit 1ba50397db
41 changed files with 616 additions and 733 deletions

View File

@@ -6,14 +6,14 @@
state: present
- name: Create the `aur_builder` user
become: yes
become: true
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
become: true
ansible.builtin.lineinfile:
path: /etc/sudoers.d/11-install-aur_builder
line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
@@ -21,7 +21,7 @@
validate: 'visudo -cf %s'
- name: Clone yay from AUR
become: yes
become: true
become_user: aur_builder
git:
repo: https://aur.archlinux.org/yay.git
@@ -30,7 +30,7 @@
update: yes
- name: Build and install yay
become: yes
become: true
become_user: aur_builder
shell: |
cd /home/aur_builder/yay