Ansible_workstation/tasks/arch_aur.yml

36 lines
690 B
YAML

---
- user:
name: aur_builder
group: wheel
uid: 998
tags:
- first_deployement
- lineinfile:
path: /etc/sudoers.d/11-install-aur_builder
state: present
line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman'
create: yes
validate: 'visudo -cf %s'
tags:
- first_deployement
- 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: yes
become_user: aur_builder
tags:
- first_deployement
- name: Install Yay
aur:
name: yay
use: makepkg
skip_installed: true
become: yes
become_user: aur_builder