I’ve started looking at Ansible to manage all the laptops, VMs, SBCs that I have running Arch Got the ol’ pacman installs / updates working fine, but I’m having some problems understanding how to setup AUR to install some of those packages.

Main issue is where Ansible is basically doing everything as root, and AUR helpers don’t want to run as root, so ok, create a 2nd non-root user first…

But even installing an AUR helper (yay) brings problems:

I can setup a folder in /tmp/aur , I can git clone the yay package, but then I have no idea how to run makepkg or then yay as that non-root user.

Does anyone have this already figured out?

Or… am I going about this the wrong way?

You are viewing a single thread.
View all comments
2 points
*

Edit: I missed part of the question. The repository below only references installing yay. Could you have the become_password as a vault secret in ansible and respond to the password prompt with expect?

I literally stumbled upon this a few hours ago, maybe it will help.

github.com/DoTheEvo/ansible-arch

permalink
report
reply
1 point

Ooh, not seen that before… thanks

permalink
report
parent
reply

Arch Linux

!archlinux@lemmy.ml

Create post

The beloved lightweight distro

Community stats

  • 265

    Monthly active users

  • 314

    Posts

  • 2.2K

    Comments

Community moderators