computer-playbook/roles/system-aur-helper/tasks/main.yml

19 lines
493 B
YAML
Raw Normal View History

2022-08-18 08:06:28 +02:00
- name: install yay
community.general.pacman:
name: yay
state: present
- 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
2023-12-03 16:20:30 +01:00
validate: 'visudo -cf %s'