Concat multiple variables and strings in ansible playbook


I’m trying multiple concatenation when preforming with_items for the destination section.

Right now it looks like this:

I get:

Tried couple of approaches but none resulted something that’s working.

Is it possible to concat the variables with the strings?


Don’t mix pure YAML and key=value syntaxes for parameters. And always use YAML syntax for complex arguments:

Leave a Reply