I have a playbook that has “gather_facts: yes”, and with that I’m trying to look through all of the hosts in the playbook and print out the OS version information. The Jinja2 template I’m using is below. The issue I’m having is that it prints the same version information for every host. How can I grab the facts gathered for each host in the play?
Thanks,
Harry
Operating System Versions report
Date generated: {{ ansible_date_time.month }}/{{ ansible_date_time.day }}/{{ ansible_date_time.year }} {{ ansible_date_time.time }}