ansible-collections / ansible-consul

:satellite: Ansible role for Hashicorp Consul clusters

Home Page:https://galaxy.ansible.com/ansible-community/consul/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No filter named 'ipaddr' found

niklasweimann opened this issue · comments

When i execute the Playbook Version v2.5.4 with the following ansible version i get an error:

Ansible Version

ansible [core 2.11.4] 
  config file = /Users/niklasweimann/dev/ansible/ansible.cfg
  configured module search path = ['/Users/niklasweimann/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.9/site-packages/ansible
  ansible collection location = /Users/niklasweimann/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.9.13 (main, May 24 2022, 21:28:31) [Clang 13.1.6 (clang-1316.0.21.2)]
  jinja version = 3.0.1
  libyaml = True

Error Message

FAILED! => {"msg": "The conditional check '(consul_ports.http|int > -1) and (consul_addresses.http|ipaddr)' failed. The error was: No filter named 'ipaddr' found.\n\nThe error appears to be in '/Users/niklasweimann/dev/ansible/ansible-roles/brianshumate.consul/tasks/nix.yml': line 244, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Check Consul HTTP API (via TCP socket)\n ^ here\n"}

Further information

The ipaddr() filter migrated to the ansible.utils collection. Follow the installation instructions to install that collection. --- https://docs.ansible.com/ansible/latest/collections/ansible/utils/docsite/filters_ipaddr.html

I created a PR including the fix. See !495