Setup aur builder
parent
2990cb7bf8
commit
63a0c7896e
|
@ -21,6 +21,7 @@
|
|||
- acpid
|
||||
- docker
|
||||
- wayland
|
||||
- aur-builder
|
||||
|
||||
tasks:
|
||||
- name: Install common user applications
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
# Install Ansible AUR helper
|
||||
- src: kewlfft.aur
|
|
@ -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 New Issue