Ansible random UUID generation


In my Ansible script, I want to generate UUIDs on the fly and use them later on.

Here is my approach:

However I get the following error:

How can I solve this issue?


In ansible 1.9 there is a new filter : to_uuid , which given a string it will return an ansible domain specific UUID,you can find the usage in here

Leave a Reply