diff --git a/ansible/filter_plugins/raise.py b/ansible/filter_plugins/raise.py new file mode 100644 index 0000000..221716d --- /dev/null +++ b/ansible/filter_plugins/raise.py @@ -0,0 +1,11 @@ +from jinja2.exceptions import TemplateRuntimeError + +def fraise(msg): + raise TemplateRuntimeError(msg) + + +class FilterModule: + def filters(self): + return { + 'raise': fraise, + }