2022-12-10 17:51:03 +00:00
|
|
|
- name: Install base-devel package
|
|
|
|
community.general.pacman:
|
2018-12-01 18:12:12 +00:00
|
|
|
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
|
2018-12-01 18:12:12 +00:00
|
|
|
|
|
|
|
- name: Create aur_builder user
|
2022-12-10 17:51:03 +00:00
|
|
|
ansible.builtin.user:
|
2018-12-01 18:12:12 +00:00
|
|
|
name: aur_builder
|
|
|
|
group: wheel
|
2022-02-13 08:40:15 +00:00
|
|
|
become: true
|
2018-12-01 18:12:12 +00:00
|
|
|
|
|
|
|
- name: Allow aur_builder to run pacman as root
|
2022-12-10 17:51:03 +00:00
|
|
|
ansible.builtin.lineinfile:
|
2018-12-01 18:12:12 +00:00
|
|
|
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
|
2018-12-01 18:12:12 +00:00
|
|
|
|
2022-12-10 17:51:03 +00:00
|
|
|
- name: Install yay
|
2018-12-01 18:12:12 +00:00
|
|
|
aur:
|
2020-06-04 20:22:44 +00:00
|
|
|
state: present
|
2018-12-01 18:12:12 +00:00
|
|
|
name: yay
|
|
|
|
use: makepkg
|
2022-02-13 08:40:15 +00:00
|
|
|
skip_pgp_check: true
|
|
|
|
become: true
|
2018-12-01 18:12:12 +00:00
|
|
|
become_user: aur_builder
|