Not sure if this is exactly what you want to do, but have you tried using
variables in your play using register? I.e.
- name: Get python version
shell: python -V
register: python_version
- name: Show python version
debug:
msg: "{{ python_version }}"
This will return the version on each host modified. Sorry if this isn't
related to your question, but seems like that was what you're looking for.
--
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/3764628a-c835-40ee-9024-3315ecbc9dfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.