Two variables in one variable

33 views
Skip to first unread message

ryad9...@gmail.com

unread,
Feb 14, 2019, 5:53:08 AM2/14/19
to Ansible Project
hi,

How to put two variables in one variable please ?

I want that my variable get value of two other variables.

Exemple:

var_1: {{ var_2 }} + {{ var_3 }} 

or

var_1: {{ var_2 }}_{{ var_3 }} 

Thank you very much !! :)

Regards,


Jean-Yves LENHOF

unread,
Feb 14, 2019, 6:01:08 AM2/14/19
to ansible...@googlegroups.com, ryad9...@gmail.com
Use set_fact module

Regards,

JYL

ryad9...@gmail.com

unread,
Feb 14, 2019, 8:59:40 AM2/14/19
to Ansible Project
Thank you ! :)

Regards,
Reply all
Reply to author
Forward
0 new messages