-
Feature Request
-
Resolution: Unresolved
-
Normal
-
None
-
2.5
-
False
-
-
False
- What is the nature and description of the request?
The customer requests support for standard Jinja2 filters, such as regex_replace in Ansible Rulebooks, specifically within condition and action fields of rules defined in Event-Driven Ansible (EDA) within AAP 2.5. These filters are commonly used in Ansible playbooks but currently fail with errors such as:
~~~
ansible_rulebook.cli - ERROR - Terminating No filter named 'regex_replace'
~~~
This limitation impacts the ability to perform basic string manipulation or pattern extraction on event data within rulebooks. - Why does the customer need this? (List the business requirements here)
The customer is attempting to automate certificate distribution in environments where a certificate management agent cannot be installed. Certificates are generated on a central server, and their filenames indicate the target server. EDA is intended to detect newly created or modified certificate files and trigger a job template to copy these to the correct server.
Without support for 'regex_replace', the customer cannot parse {{'event.path' }}to determine the target host from the file name, making automation impossible. As a result, they are forced to continue with a manual process, which is inefficient and error-prone
- How would you like to achieve this? (List the functional requirements here)
- Enable support for standard Jinja2 filters (e.g., regex_replace, basename, etc.) within:
-
- The 'condition' section of rules
-
- Any templated fields in the 'action' section (e.g., 'limit')
- Ensure the filters available in playbooks are consistent with those in rulebooks, or provide clear documentation on supported filters.
- account is impacted by
-
AAPRFE-1056 [EDA] Implement builtin filters similar to those provided by ansible.builtin for rulebooks
-
- Backlog
-