Re: ansible run dep on netaddr python module

2022-01-13 Thread Daniel Jakots
On Thu, 13 Jan 2022 13:04:40 +0300, Pavel Korovin  wrote:

> The same is about py-netaddr.

FWIW, it used to be a rdep:
https://github.com/openbsd/ports/commit/9495f5f3e34eb8d36ca49d2e03753f6c8fc02806
until the update to 4.1.0:
https://github.com/openbsd/ports/commit/a6d6a5de1a11fee7863c5db69a291e103a263cd0
and it didn't make it into ansible-core.

Cheers,
Daniel



Re: ansible run dep on netaddr python module

2022-01-13 Thread Mikolaj Kucharski
Hi Pavel,

On Thu, Jan 13, 2022 at 01:04:40PM +0300, Pavel Korovin wrote:
> On 01/12, Mikolaj Kucharski wrote:
> > Hi,
> > 
> > I had fresh install of OpenBSD-current with ansible added via packages:
> > 
> >   pkg_add -i ansible
> > 
> > Running it on some of my playbooks failed with AnsibleFilterError:
> > 
> >   The reduce_on_network filter requires python's netaddr be installed 
> > on the ansible controller
> > 
> > Via pkg_add py3-netaddr problem was fixed. I was wondering, could
> > net/py-netaddr be added to ansible/ansible-core package?
> 
> 
> Hi Mikolaj,
> 
> There are lots of modules which provide additional functionality for specific
> use cases, e.g. py-jmespath for JSON parsing or py-napalm for managing
> network devices, but these are not required for basic ansible functionality 
> and
> should be added by the user. The same is about py-netaddr.
> 

I am very aware of that. I asked about netaddr because it doesn't feel
to me as a heavy dependency, but I guess not everyone has the same
level of heaviness.

-- 
Regards,
 Mikolaj



Re: ansible run dep on netaddr python module

2022-01-13 Thread Pavel Korovin
On 01/12, Mikolaj Kucharski wrote:
> Hi,
> 
> I had fresh install of OpenBSD-current with ansible added via packages:
> 
>   pkg_add -i ansible
> 
> Running it on some of my playbooks failed with AnsibleFilterError:
> 
>   The reduce_on_network filter requires python's netaddr be installed on 
> the ansible controller
> 
> Via pkg_add py3-netaddr problem was fixed. I was wondering, could
> net/py-netaddr be added to ansible/ansible-core package?


Hi Mikolaj,

There are lots of modules which provide additional functionality for specific
use cases, e.g. py-jmespath for JSON parsing or py-napalm for managing
network devices, but these are not required for basic ansible functionality and
should be added by the user. The same is about py-netaddr.

-- 
With best regards,
Pavel Korovin



ansible run dep on netaddr python module

2022-01-12 Thread Mikolaj Kucharski
Hi,

I had fresh install of OpenBSD-current with ansible added via packages:

  pkg_add -i ansible

Running it on some of my playbooks failed with AnsibleFilterError:

  The reduce_on_network filter requires python's netaddr be installed on 
the ansible controller

Via pkg_add py3-netaddr problem was fixed. I was wondering, could
net/py-netaddr be added to ansible/ansible-core package?

-- 
Regards,
 Mikolaj