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

add netaddr library to awx-ee #90

Open
cerberek opened this issue Sep 30, 2021 · 6 comments
Open

add netaddr library to awx-ee #90

cerberek opened this issue Sep 30, 2021 · 6 comments

Comments

@cerberek
Copy link

Having error
The ipaddr filter requires python's netaddr be installed on the ansible controller

Issue at awx was closed without any action
ansible/awx#10370 (comment)

@bubulak
Copy link

bubulak commented Oct 27, 2021

This works for me:

  1. add line to _build/bindep.txt "python3-netaddr [platform:rpm]"
  2. add line to _build/requirements.yml " - name: ansible.netcommon"

@liviozanol
Copy link

liviozanol commented Jan 24, 2022

This is really sad.... There should be a way to custom specify a requirements.txt with custom python modules/packages (not only collections) and EE could run this on execution time.

BTW, if you create a task inside the playbook that installs a module using pip, it will work withou needing to create a custom EE.... IE:

      - name: pip install netaddr (really disagree how red hat manage their products...). Either I do this or create a custom Execution Enviroment....
        ansible.builtin.shell: pip install netaddr
        delegate_to: 127.0.0.1

Also, please keep in mind that Ansible was initially created to automate network devices! How you do complex automation tasks without netaddr package?

Please, reconsider this

@keliansb
Copy link

Sadly your suggestion @liviozanol is not working for me, I have the following warning :

Defaulting to user installation because normal site-packages is not writeable.
WARNING: The script netaddr is installed in '/home/runner/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

@misbahulard
Copy link

Any update about this issue? I think this pull request may fix it but has not been reviewed yet #92.

@misbahulard
Copy link

misbahulard commented Apr 14, 2022

Any update about this issue? I think this pull request may fix it but has not been reviewed yet #92.

I just create the custom AWX EE for a temporary solution, feel free to use the images here: Docker Hub

The changes are exactly the same as those made in Pull Request #92.

@yaldhamary
Copy link

yaldhamary commented Jun 4, 2022

Hi there,
I have a custom awx ee I used for network automation projects that contain the netaddr python module and the ansible.netcommon collection. you can install the image from here AWX EE image

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

Successfully merging a pull request may close this issue.

6 participants