Setup aur builder
This commit is contained in:
parent
2990cb7bf8
commit
63a0c7896e
@ -21,6 +21,7 @@
|
|||||||
- acpid
|
- acpid
|
||||||
- docker
|
- docker
|
||||||
- wayland
|
- wayland
|
||||||
|
- aur-builder
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install common user applications
|
- 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
|
Reference in New Issue
Block a user