Setup aur builder

This commit is contained in:
Michael Mandl 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