this post was submitted on 03 Feb 2024
10 points (100.0% liked)
Arch Linux
7750 readers
2 users here now
The beloved lightweight distro
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Can't you change to a normal user with become? We do lots of stuff with Ansible as normal user. You should be able to create tasks that get executed as normal user and install yay and run makepkg, and then run yay to install packages.
Yeah, the problem was that some modules don't support
become
, so I just ran the whole thing that way.For git and aur, to drop sudo I found that I have to use
ansible-become
variables to override just that step.Live & learn