That’s probably not going to work, instance filters are specific to whatever inventory source you are using. Currently they are implemented on ec2 and vmware inventory sources and you can see more information here:
The INSTANCE FILTERS field appears to use the same {{}} syntax as a normal Ansible Template. Thus, I would think you’d be able to do anything in that field you can do in a template. At least as far as configuring what the stuff between the brackets turns into.
That’s why I’m wondering if I should be able to use the regex_search jinja filter. If I am, then the fact I got that error means there is a problem. If I’m not, then I just can’t use the filters and have to figure out another way of doing what I want.
The INSTANCE FILTERS field appears to use the same {{}} syntax as a normal
Ansible Template. Thus, I would think you'd be able to do anything in that
field you can do in a template. At least as far as configuring what the
stuff between the brackets turns into.
As Matt said, only for VMware... ec2 uses that field differently, and other
scripts not at all.
That's why I'm wondering if I should be able to use the regex_search jinja
filter. If I am, then the fact I got that error means there is a problem.
If I'm not, then I just can't use the filters and have to figure out
another way of doing what I want.