2018-08-22 20:16:31 +00:00
|
|
|
---
|
|
|
|
- user:
|
|
|
|
name: aur_builder
|
|
|
|
group: wheel
|
2018-08-22 20:22:38 +00:00
|
|
|
|
2018-08-22 20:16:31 +00:00
|
|
|
- lineinfile:
|
|
|
|
path: /etc/sudoers.d/11-install-aur_builder
|
2018-08-22 20:22:38 +00:00
|
|
|
state: present
|
2018-08-22 20:16:31 +00:00
|
|
|
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
|
|
|
|
|
2018-08-22 20:20:26 +00:00
|
|
|
- name: Install Yay
|
|
|
|
aur:
|
|
|
|
name: yay
|
|
|
|
use: makepkg
|
|
|
|
skip_installed: true
|
2018-08-22 20:23:45 +00:00
|
|
|
become: yes
|
2018-08-22 20:20:26 +00:00
|
|
|
become_user: aur_builder
|