Hi all,
In a role I have the following:
- name: generate new UUID
shell: uuidgen
register: new_uuid
When I call the variable in the template I get everything, not just the
UUID.
Example:
UUID={{ new_uuid }}
I get:
UUID={u'changed': True, u'end': u'2016-09-09 11:30:01.256488', u'stdout':
u'f213d337-5c3b-4687-8061-70f74b49ed20', u'cmd': u'uuidgen', u'start':
u'2016-09-09 11:30:01.251479', u'delta': u'0:00:00.005009', u'stderr': u'',
u'rc': 0, 'stdout_lines': [u'f213d337-5c3b-4687-8061-70f74b49ed20'],
u'warnings': []}
All of my other registered variables work correctly, just this one is
giving me a problem. Anyone know what I am doing wrong?
Thanks!
jamie
--
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/0dd8e51c-eeaf-405d-b61e-270fd60ccf4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.