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