24 lines
488 B
YAML
24 lines
488 B
YAML
---
|
|
- name: setup account
|
|
user:
|
|
name: aur_builder
|
|
create_home: no
|
|
shell: /usr/bin/nologin
|
|
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
|