how to append to a list in jinja2 for ansible


Below is the jinja2 template that i wrote to use in ansible.

Below is the my desired output:

But when i am running the ansible playbook, it is throwing the error as below:

Any help would be appreciated..


Try below code:

You ll get:,,

Leave a Reply