Setup aur builder

This commit is contained in:
mandlm 2021-01-30 15:00:18 +01:00
parent 2990cb7bf8
commit 63a0c7896e
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
3 changed files with 24 additions and 0 deletions

View File

@ -21,6 +21,7 @@
- acpid
- docker
- wayland
- aur-builder
tasks:
- name: Install common user applications

2
requirements.yaml Normal file
View File

@ -0,0 +1,2 @@
# Install Ansible AUR helper
- src: kewlfft.aur

View File

@ -0,0 +1,21 @@
---
- name: setup account
user:
name: aur_builder
create_home: no
register: aur_builder
- name: install tools
package:
name: "{{ item }}"
state: latest
loop:
- fakeroot
- name: allow sudo pacman
lineinfile:
path: /etc/sudoers.d/aur_builder
state: present
line: "{{ aur_builder.name }} ALL=(ALL) NOPASSWD: /usr/bin/pacman"
validate: /usr/bin/visudo -cf %s
create: yes