ansible-aur icon indicating copy to clipboard operation
ansible-aur copied to clipboard

Add support for the aura helper

Open willtrnr opened this issue 2 years ago • 3 comments

This is adding aura as a helper option.

However, this helper is a bit different. It works in reverse, meaning that it must be run as root and it drops privileges to run makepkg. This removes the need for the builder user and is pretty nice for Ansible use.

Also, it either uses only the AUR or only the repos for the requested packages (dependencies can be from both), there's no in between. Since this module is focused on AUR packages, I set it to use that (the -A flag instead of -S) and the aur_only option has no effect.

Feedback welcome if there's anything.

willtrnr avatar Jun 09 '22 06:06 willtrnr

I am a bit skeptical with all the specificities you mention. Do you confirm your request is still relevant and is working with current aura version?

kewlfft avatar Jul 08 '23 17:07 kewlfft

It's been quite a while, I personally no longer have the specific use-case I had for an AUR helper. However, I guess it could be useful to some other users out there. IMO, not having to create a builder user provides much better ergonomics in an Ansible context.

And, yes, this will still work on a current aura version.

willtrnr avatar Jul 09 '23 06:07 willtrnr

It's adding some logic I won't have time to test, and you're not going to use it either. Thanks for the commit, I'll wait for one more user to express its interest here to add it.

kewlfft avatar Jul 09 '23 16:07 kewlfft