Concatenate registered variable , variables in vara and strings

4 views
Skip to first unread message

pnagar...@gmail.com

unread,
Mar 4, 2019, 12:51:16 PM3/4/19
to Ansible Project
I'm trying to concatenate registered variable from a previous task , external variable with a string ( ex: -stringhere) in a task.

I'm not getting the syntax to do it.

I tried below and it didn't work.

Command : echo {{ item.0 + "-" item.1 +"-stringhere"
With_items:
- "{{ thevar.stdout }}
- "{{ external var }}"

Please help with the syntax to do this.

Reply all
Reply to author
Forward
0 new messages