23 lines
458 B
YAML
23 lines
458 B
YAML
---
|
|
- name: setup account
|
|
user:
|
|
name: aur_builder
|
|
create_home: no
|
|
register: aur_builder
|
|
|
|
- name: install tools
|
|
package:
|
|
name: "{{ item }}"
|
|
state: latest
|
|
loop:
|
|
- base-devel
|
|
- 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
|