Hi! The case is, I want to define some simple jinja macros, to simplify some common filters / conditionals combinations without using python directly (my point is: supporting those tasks is easier for my team than supporting full featured python code).
Is there a way to use custom jinja macros inside tasks templating engine? Eg: {% macro domit(value) -%} {{ value if value else omit }} {%- endmacro %} then: - script: runme.sh args: creates: "{{ domit(my_var) }}" -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.