2021-01-30 14:00:18 +00:00
|
|
|
---
|
|
|
|
- name: setup account
|
|
|
|
user:
|
|
|
|
name: aur_builder
|
|
|
|
create_home: no
|
2021-02-07 12:52:00 +00:00
|
|
|
shell: /usr/bin/nologin
|
2021-01-30 14:00:18 +00:00
|
|
|
register: aur_builder
|
|
|
|
|
|
|
|
- name: install tools
|
|
|
|
package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: latest
|
|
|
|
loop:
|
2021-01-30 14:05:00 +00:00
|
|
|
- base-devel
|
2021-01-30 14:00:18 +00:00
|
|
|
- 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
|