All,
this is the message I execute a task that requires ipaddr filter
{
"msg": "The ipaddr filter requires python's netaddr be installed on the ansible controller",
"_ansible_no_log": false
}
I know that netaddr is installed because I ran a 'pip list' command before the failure. See below.
The play book works from the ansible controller i have developed on, both in Debian & Centos versions.
I am using AWX v19.2.2
Playbooks use a remote node to execute against.
I even have a task to install netaddr which says it is successful but i see this message
Not sure if the PATH comment is something i need to change in my role to make it work on AWX.
{
"changed": true,
"cmd": [
"/usr/local/bin/pip3",
"install",
"netaddr"
],
"name": [
"netaddr"
],
"version": null,
"state": "present",
"requirements": null,
"virtualenv": null,
"stdout": "Defaulting to user installation because normal site-packages is not writeable\nCollecting netaddr\n Downloading netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)\nInstalling collected packages: netaddr\nSuccessfully installed netaddr-0.8.0\n",
"stderr": " WARNING: The script netaddr is installed in '/home/runner/.local/bin' which is not on PATH.\n Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.\nWARNING: You are using pip version 21.1.3; however, version 22.0.3 is available.\nYou should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.\n",
"invocation": {
"module_args": {
"name": [
"netaddr"
],
"state": "present",
"virtualenv_site_packages": false,
"virtualenv_command": "virtualenv",
"editable": false,
"version": null,
"requirements": null,
"virtualenv": null,
"virtualenv_python": null,
"extra_args": null,
"chdir": null,
"executable": null,
"umask": null
}
},
"stdout_lines": [
"Defaulting to user installation because normal site-packages is not writeable",
"Collecting netaddr",
" Downloading netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)",
"Installing collected packages: netaddr",
"Successfully installed netaddr-0.8.0"
],
"stderr_lines": [
" 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.",
"WARNING: You are using pip version 21.1.3; however, version 22.0.3 is available.",
"You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command."
],
"_ansible_no_log": false
}
###################################################
pip list output
"Package Version",
"---------------------------------- ---------------",
"adal 1.2.7",
"ansible-core 2.11.2.post0",
"ansible-runner 2.0.0.0a4.dev53",
"appdirs 1.4.4",
"applicationinsights 0.11.10",
"argcomplete 1.12.3",
"asn1crypto 1.2.0",
"awxkit 19.2.1",
"azure-cli-core 2.11.1",
"azure-cli-nspkg 3.0.2",
"azure-cli-telemetry 1.0.6",
"azure-common 1.1.11",
"azure-core 1.15.0",
"azure-graphrbac 0.61.1",
"azure-keyvault 1.0.0a1",
"azure-mgmt-apimanagement 0.2.0",
"azure-mgmt-authorization 0.51.1",
"azure-mgmt-automation 0.1.1",
"azure-mgmt-batch 5.0.1",
"azure-mgmt-cdn 3.0.0",
"azure-mgmt-compute 10.0.0",
"azure-mgmt-containerinstance 1.4.0",
"azure-mgmt-containerregistry 2.0.0",
"azure-mgmt-containerservice 9.1.0",
"azure-mgmt-core 1.2.0",
"azure-mgmt-cosmosdb 0.5.2",
"azure-mgmt-datalake-nspkg 2.0.0",
"azure-mgmt-datalake-store 0.5.0",
"azure-mgmt-devtestlabs 3.0.0",
"azure-mgmt-dns 2.1.0",
"azure-mgmt-eventhub 2.0.0",
"azure-mgmt-hdinsight 0.1.0",
"azure-mgmt-iothub 0.7.0",
"azure-mgmt-keyvault 1.1.0",
"azure-mgmt-loganalytics 1.0.0",
"azure-mgmt-managedservices 1.0.0",
"azure-mgmt-managementgroups 0.2.0",
"azure-mgmt-marketplaceordering 0.1.0",
"azure-mgmt-monitor 0.5.2",
"azure-mgmt-network 12.0.0",
"azure-mgmt-nspkg 2.0.0",
"azure-mgmt-privatedns 0.1.0",
"azure-mgmt-rdbms 1.9.0",
"azure-mgmt-recoveryservices 0.4.0",
"azure-mgmt-recoveryservicesbackup 0.6.0",
"azure-mgmt-redis 5.0.0",
"azure-mgmt-resource 10.2.0",
"azure-mgmt-search 3.0.0",
"azure-mgmt-servicebus 0.5.3",
"azure-mgmt-sql 0.10.0",
"azure-mgmt-storage 11.1.0",
"azure-mgmt-trafficmanager 0.50.0",
"azure-mgmt-web 0.41.0",
"azure-nspkg 2.0.0",
"azure-storage 0.35.1",
"Babel 2.7.0",
"bcrypt 3.2.0",
"boto 2.49.0",
"boto3 1.17.102",
"botocore 1.20.102",
"cachetools 4.2.2",
"certifi 2021.5.30",
"cffi 1.13.2",
"chardet 3.0.4",
"colorama 0.4.4",
"cryptography 2.8",
"decorator 5.0.9",
"docutils 0.17.1",
"dogpile.cache 1.1.3",
"dumb-init 1.2.5",
"google-auth 1.32.0",
"gssapi 1.6.12",
"humanfriendly 8.2",
"idna 2.8",
"ipaddress 1.0.23",
"iso8601 0.1.14",
"isodate 0.6.0",
"Jinja2 2.10.3",
"jmespath 0.10.0",
"jsonpatch 1.32",
"jsonpointer 2.1",
"keystoneauth1 4.3.1",
"knack 0.7.2",
"kubernetes 17.17.0",
"lockfile 0.12.2",
"lxml 4.4.1",
"MarkupSafe 1.1.1",
"msal 1.0.0",
"msal-extensions 0.1.3",
"msrest 0.6.10",
"msrestazure 0.6.4",
"munch 2.5.0",
"ncclient 0.6.12",
"netaddr 0.8.0",
"netifaces 0.11.0",
"nsx-policy-python-sdk 3.1.2.1.1",
"nsx-python-sdk 3.1.2.1.1",
"nsx-vmc-aws-integration-python-sdk 3.1.2.1.1",
"nsx-vmc-policy-python-sdk 3.1.2.1.1",
"ntlm-auth 1.5.0",
"oauthlib 3.1.1",
"openstacksdk 0.57.0",
"os-service-types 1.7.0",
"ovirt-engine-sdk-python 4.4.13",
"packaging 20.9",
"paramiko 2.7.2",
"pbr 5.6.0",
"pexpect 4.8.0",
"pip 21.1.3",
"pkginfo 1.7.0",
"ply 3.11",
"portalocker 1.7.1",
"ptyprocess 0.7.0",
"pyasn1 0.4.8",
"pyasn1-modules 0.2.8",
"pycparser 2.19",
"pycurl 7.43.0.6",
"Pygments 2.9.0",
"PyJWT 1.7.1",
"pykerberos 1.2.1",
"PyNaCl 1.4.0",
"pynetbox 6.6.1",
"pyOpenSSL 19.1.0",
"pyparsing 2.4.7",
"pypsrp 0.5.0",
"PySocks 1.7.1",
"pyspnego 0.1.6",
"python-daemon 2.3.0",
"python-dateutil 2.8.1",
"pytz 2019.3",
"pyvmomi 7.0.2",
"pywinrm 0.4.2",
"PyYAML 5.3.1",
"requests 2.22.0",
"requests-credssp 1.2.0",
"requests-ntlm 1.1.0",
"requests-oauthlib 1.3.0",
"requestsexceptions 1.4.0",
"resolvelib 0.5.4",
"rsa 4.7.2",
"s3transfer 0.4.2",
"setuptools 41.6.0",
"six 1.12.0",
"stevedore 3.3.0",
"suds-jurko 0.6",
"tabulate 0.8.9",
"toml 0.10.2",
"urllib3 1.25.7",
"vapi-client-bindings 3.6.0",
"vapi-common-client 2.25.0",
"vapi-runtime 2.25.0",
"vmc-client-bindings 1.45.0",
"vmc-draas-client-bindings 1.17.0",
"vSphere-Automation-SDK 1.61.0",
"websocket-client 1.1.0",
"xmltodict 0.12.0"
],