This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-machine-setup/roles/aur-builder/tasks/main.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