cytopia/docker-ansible

Feature Request: netaddr package

ryanmerolle opened this issue · 4 comments

It would be nice if netaddr package was added to at least the infra version of the container given netaddr is the basis of ipaddr and ipsubnet filters.

Thanks again!

Is it fixed? Since on latest version I am getting

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleFilterError: The ipmath filter requires python's netaddr be installed on the ansible controller
fatal: [host]: FAILED! => {"changed": false, "msg": "AnsibleFilterError: The ipmath filter requires python's netaddr be installed on the ansible controller"}
$ ansible --version
ansible [core 2.13.6]
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.10/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.10.8 (main, Nov 10 2022, 12:59:17) [GCC 11.2.1 20220219]
  jinja version = 3.1.2
  libyaml = True

What flavour are you using then? It is not available on all images. See here: https://github.com/cytopia/docker-ansible#whale-available-docker-image-versions

Just cytopia/ansible:latest, should I use latest-infra?

Yes it is latest-infra, but good point, the docker tag block is missing for the infra images in the Readme 🤦