role_base_pkgs/tasks/main.yml

25 lines
699 B
YAML

---
###########################################################
#
# This role will set up a user for retrieving, building and installing arch
# packages from the AUR.
#
###########################################################
# tasks file for aur_builder
- debug: msg="Setting up aur_builder acount (Arch)"
- name: Create the `aur_builder` user
ansible.builtin.user:
name: aur_builder
create_home: yes
group: wheel
- name: Allow the `aur_builder` user to run `sudo pacman` without a password
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'