enable AUR for ansible

This commit is contained in:
Bertrand Benjamin 2018-08-22 22:16:31 +02:00
parent bfd508eeaa
commit f44121acbb
2 changed files with 19 additions and 0 deletions

View File

@ -9,4 +9,5 @@
- include: tasks/arch_base_packages.yml - include: tasks/arch_base_packages.yml
- include: tasks/users.yml - include: tasks/users.yml
- include: tasks/sudo.yml - include: tasks/sudo.yml
- include: tasks/arch_aur.yml
- include: tasks/arch_gnome.yml - include: tasks/arch_gnome.yml

18
tasks/arch_aur.yml Normal file
View File

@ -0,0 +1,18 @@
---
- user:
name: aur_builder
group: wheel
- lineinfile:
path: /etc/sudoers.d/11-install-aur_builder
line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
create: yes
validate: 'visudo -cf %s'
- name: Git clone ansible-aur
git:
repo: https://github.com/kewlfft/ansible-aur.git
dest: ~/.ansible/plugins/modules/aur
version: master
accept_hostkey: yes
become_user: aur_builder