Monday, August 04, 2025

ansible.builtin.package vs pkg_add command directly (was Re: ansible breakage)

Hi Lyndon,

Out of curiosity, can you give an example how you work with pkg_add
command directly, instead with ansible.builtin.package?

I imagine your solution is probably simple, but just want to make sure.

On Thu, Jul 31, 2025 at 09:46:05AM -0700, Lyndon Nerenberg (VE7TFX/VE6BBM) wrote:
> > So it fails on the task,
> > - name: nginx package
> > ansible.builtin.package:
>
> ansible.builtin.package is just broken. I fought with it for a
> while, then gave up and changed it to just run the pkg_add command
> directly. A bit brute force, but it solved the problem, and there
> hasn't been any blowback since the change.
>
> --lyndon
>

--
Regards,
Mikolaj

No comments:

Post a Comment