ansible / ansible-policy

ansible-policy is a prototype implementation which allows us to define and set constraints to the Ansible project in OPA Rego language.
Apache License 2.0
20 stars 10 forks source link

Support is search, is match, and is regex operators #49

Closed saki-takano closed 2 weeks ago

saki-takano commented 1 month ago

Want to add is search, is match, and is regex operators as supported in Rulebook. https://ansible.readthedocs.io/projects/rulebook/en/stable/conditions.html#supported-operators

is search: check if the pattern exists anywhere in the string is not search: check if the pattern does not exist anywhere in the string is match: check if the pattern exists in the beginning of the string is not match: check if the pattern does not exist anywhere in the string is regex: check if the regular expression pattern exists in the string is not regex: check if the regular expression pattern does not exist in the string

saki-takano commented 2 weeks ago

This issue has been fixed with the PR https://github.com/ansible/ansible-policy/pull/51.