Nested Loop Registed Variable

Hi folks,

Need some help related to registered variables.

The first task in my playbook performs some operations over a nested loop and I’m registering a variable for its results. The variable looks like this -

“n_init”: {
“changed”: true,
“failed”: true,
“msg”: “One or more items failed.”,
“results”: [
{
“changed”: true,

Ok. Did not realize that we can use Jinja2 statement blocks right along with the modules and it doesn’t always have to just a variable expression. Was able to do this by templating.

Regards
Abhishek