48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
|
---
|
||
|
# tasks file for arch_aur
|
||
|
- name: Create the `aur_builder` user
|
||
|
become: yes
|
||
|
ansible.builtin.user:
|
||
|
name: aur_builder
|
||
|
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
|
||
|
pacman:
|
||
|
name: base-devel
|
||
|
state: present
|
||
|
|
||
|
# - 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
|
||
|
|