system/tasks/AUR_builder.yml

31 lines
779 B
YAML
Raw Normal View History

- name: install base-devel package
pacman:
state: present # not required. choices: absent;latest;present. Desired state of the package.
2022-02-13 08:40:15 +00:00
name: ["base-devel"] # not required. Name or list of names of the packages to install, upgrade, or remove.
update_cache: true
become: true
- name: Create aur_builder user
user:
name: aur_builder
group: wheel
2022-02-13 08:40:15 +00:00
become: true
- name: Allow aur_builder to run pacman as root
lineinfile:
path: /etc/sudoers.d/11-install-aur_builder
2022-02-13 08:40:15 +00:00
line: "aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman"
create: true
validate: "visudo -cf %s"
mode: 0600
become: true
- name: install yay
aur:
2020-06-04 20:22:44 +00:00
state: present
name: yay
use: makepkg
2022-02-13 08:40:15 +00:00
skip_pgp_check: true
become: true
become_user: aur_builder