Skip to content

Missing py-netaddr for alpine image #49

Open

Description

@btheu

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,

Activity

  1. changed the title [-]Missing python-netaddr[/-] [+]Missing py-netaddr for alpine image[/+] on Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions