Extracting value from ansible play

9 views
Skip to first unread message

Heman Malve

unread,
Mar 15, 2021, 6:31:57 AM3/15/21
to Ansible Development
Team,

 During ansible play one of the debug variable as shown below
ok: [hostname] => {
       "variable name": [
              "value"
      ]
}

/tmp/"{{value}}" ==> /tmp/\"[u'value']\"
I want to use only value instead of u, \, [] now and expecting output as /tmp/value ; please suggest...
Reply all
Reply to author
Forward
0 new messages