Kevin Veen-Birkenbach 2c76f99dd1 Add 'client-playbook/' from commit '13f29ce5f74bba0376e04189e757cb9718cf2f93'
git-subtree-dir: client-playbook
git-subtree-mainline: e763d135707241dc1eb8ec9ea919550b3f17fef6
git-subtree-split: 13f29ce5f74bba0376e04189e757cb9718cf2f93
2023-04-18 14:42:10 +02:00

25 lines
625 B
YAML

- 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
validate: 'visudo -cf %s'
- name: Upgrade the system using yay, only act on AUR packages.
kewlfft.aur.aur:
upgrade: yes
use: yay
aur_only: yes