2022-01-05 10:25:33 +00:00
|
|
|
---
|
|
|
|
# tasks file for arch_aur
|
|
|
|
- name: Create the `aur_builder` user
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.user:
|
|
|
|
name: aur_builder
|
2022-01-05 10:50:05 +00:00
|
|
|
system: no
|
2022-01-05 10:25:33 +00:00
|
|
|
create_home: yes
|
|
|
|
group: wheel
|
|
|
|
|
|
|
|
- name: Allow the `aur_builder` user to run `sudo pacman` without a password
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.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: Install base-devel
|
2022-01-05 10:50:05 +00:00
|
|
|
community.general.pacman:
|
2022-01-05 10:25:33 +00:00
|
|
|
name: base-devel
|
|
|
|
state: present
|
2022-01-05 10:50:05 +00:00
|
|
|
update_cache: yes
|
2022-01-05 10:25:33 +00:00
|
|
|
|
|
|
|
# - 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
|
|
|
|
|
|
|
|
- name: Install Yay
|
|
|
|
aur:
|
|
|
|
name: yay
|
|
|
|
use: makepkg
|
|
|
|
state: present
|
|
|
|
become: yes
|
|
|
|
become_user: aur_builder
|
|
|
|
|
|
|
|
- name: Install mkpasswd
|
|
|
|
aur:
|
|
|
|
name: mkpasswd
|
|
|
|
use: makepkg
|
|
|
|
state: present
|
|
|
|
become: yes
|
|
|
|
become_user: aur_builder
|
|
|
|
|