Setup aur builder
This commit is contained in:
parent
2990cb7bf8
commit
63a0c7896e
3 changed files with 24 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
|||
- acpid
|
||||
- docker
|
||||
- wayland
|
||||
- aur-builder
|
||||
|
||||
tasks:
|
||||
- name: Install common user applications
|
||||
|
|
2
requirements.yaml
Normal file
2
requirements.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Install Ansible AUR helper
|
||||
- src: kewlfft.aur
|
21
roles/aur-builder/tasks/main.yaml
Normal file
21
roles/aur-builder/tasks/main.yaml
Normal 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
|
Loading…
Reference in a new issue