Ansible_workstation/roles/arch_aur/tasks/main.yml

50 lines
1.1 KiB
YAML

---
# tasks file for arch_aur
- name: Create the `aur_builder` user
become: yes
ansible.builtin.user:
name: aur_builder
system: no
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
community.general.pacman:
name: base-devel
state: present
update_cache: yes
# - 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