26 lines
548 B
YAML
26 lines
548 B
YAML
---
|
|
- user:
|
|
name: aur_builder
|
|
group: wheel
|
|
- 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: Git clone ansible-aur
|
|
git:
|
|
repo: https://github.com/kewlfft/ansible-aur.git
|
|
dest: ~/.ansible/plugins/modules/aur
|
|
version: master
|
|
accept_hostkey: yes
|
|
become_user: aur_builder
|
|
|
|
- name: Install Yay
|
|
aur:
|
|
name: yay
|
|
use: makepkg
|
|
skip_installed: true
|
|
become: true
|
|
become_user: aur_builder
|