log
log is a simple tag that will log anything to task logs section.
It can optionally accept a parameter. This parameter must be one of the following:
CRITICAL
ACTION
WARNING
INFO
Parameters will define the severity of the log.
Example
{{ "Hello world" | log: "INFO" }}This will output Hello world in the task logs section. Same could be done with:
{{ "Hello world" | log }}Last updated