0

Help please, the second day can not solve the problem. I need to add checksum sha1 in file that is created from a template Example: {{ item.some_var1 | hash('sha1') }} - work fine

But when I'm trying to get something like this {{ item.some_var1 'some_string' | hash('sha1') }} - not work {{ item.some_var1 item.some_var2 | hash('sha1') }} - not work

Documentation reading, but something I can not understand http://docs.ansible.com/ansible/playbooks_filters.html#set-theory-фильтерс Please, help!

Maxim K
  • 3
  • 1

1 Answers1

0

Not sure what you want to achieve, but probably this would help:

{{ (item.some_var1 + 'some_string' + item.some_var2) | hash('sha1') }}
Konstantin Suvorov
  • 3,996
  • 1
  • 12
  • 13