Making an unsafe variable safe

16 views
Skip to first unread message

Vadim Eisenberg

unread,
May 31, 2020, 11:42:18 AM5/31/20
to Ansible Project
Hello,

I have the following use case: I want to read a string from some source into a variable, marking it unsafe. Then I want to perform my own sanitation checks and then make the variable safe so I could use Jinja2 templating on it. My question is: is there something opposite to the `!unsafe` tag, like `!safe`? Or any other tip h ow to make an unsafe variable safe?

Thanks,
Vadim

Brian Coca

unread,
Jun 1, 2020, 11:54:22 AM6/1/20
to Ansible Project
No, not really.

--
----------
Brian Coca

Reply all
Reply to author
Forward
0 new messages