Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing py-netaddr for alpine image #49

Open
btheu opened this issue Feb 19, 2019 · 0 comments
Open

Missing py-netaddr for alpine image #49

btheu opened this issue Feb 19, 2019 · 0 comments

Comments

@btheu
Copy link

btheu commented Feb 19, 2019

Hi,

From a ansible template i am using the ipaddr filter like this sample

{{ '10.10.0.1/24' | ipaddr('address') }}

Running this template with docker image williamyeh/ansible:alpine3 will throw this ansible error

The ipaddr filter requires python-netaddr be installed on the ansible controller

Installing it on hosts does not help. Is it possible to add this statement inside the Dockerfile ?

apk add py-netaddr

Maybe you prefere a pull request than an issue ?

Source:
https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters_ipaddr.html

Regards,

@btheu btheu changed the title Missing python-netaddr Missing py-netaddr for alpine image Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant