Packages/netaddr Installation issue

We are installing the various packages on the vms created on aws using the terraform script.

We are however having this error:

Does anyone have an idea on how to solve this?


What version of Python is installed? I managed to fix this error by using pip3

I edited this file:

nano roles/packages/netaddr/tasks/main.yml

  • name: Install python netaddr
    name: netaddr
    state: present
    executable: pip3
    become: yes

I hope it helps.

That is very helpful, thank you very much.