42 lines
835 B
YAML
42 lines
835 B
YAML
---
|
|
# tasks file for arch_aur
|
|
- name: Create the `aur_builder` user
|
|
become: yes
|
|
ansible.builtin.user:
|
|
name: aur_builder
|
|
system: no
|
|
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'
|
|
|
|
- name: Install base-devel and cmake
|
|
community.general.pacman:
|
|
name:
|
|
- base-devel
|
|
- cmake
|
|
state: present
|
|
|
|
- name: Install Yay
|
|
aur:
|
|
name: yay
|
|
use: makepkg
|
|
state: present
|
|
become: yes
|
|
become_user: aur_builder
|
|
|
|
- name: Install mkpasswd
|
|
aur:
|
|
name: mkpasswd
|
|
use: makepkg
|
|
state: present
|
|
become: yes
|
|
become_user: aur_builder
|
|
|