Thanks for all the responses, they were all very helpful. On Sunday, 4 May 2014 18:41:39 UTC-7, Andrew OBrien wrote: > > Hi Mike, > > > -----Original Message----- > > From: [email protected] <javascript:> [mailto: > [email protected] <javascript:>] On Behalf Of Mike Trienis > > Sent: Saturday, 3 May 2014 7:02 AM > > > > Hi All, > > > > I was wondering if ansible has a way to generate a unique identifier? > > Assuming that you are running ansible from a linux system you could always > install uuidgen (part of libuuid). On debian-derived systems this then > becomes, in ansible-speak (hand-typed - probably will not work as-is :-) ): > > - name: install uuid runtime package on local > local_action: apt pkg=uuid-runtime state=latest > > - name: generate a uuid for something > local_action: shell uuidgen > register: my_uuid > > # later in the play use my_uuid.stdout as a variable > > Hope this is helpful. > > Cheers, > > Andrew > >
-- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/208b0b0d-af23-4807-87e4-272e74187718%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
