Hello,
I’m new user in Ansible technology and I have a problem with export gathering facts about host to .csv file.
I would like to generate report in .csv file from ansible-playbook results. Ansible playbook reads facts about hosts and results of tasks and next save them to .csv file. It works. But, problem is with hosts which ansible can’t connect, because finally in my report I have only facts and tasks results from hosts which ansible can connect, but about other hosts I don’t have any information. My idea is that this playbook will be run once a day in cron and generate report for me. Next I will be read this report and I will be know with witch host ansible have problems for example with connection, run task and many other. It’s very important in works with hundreds hosts.
So my question is: What Can I export gathering facts from playbook (with fatal message too) to external file?
Now my playbook is:
What I can modify my playbook for export gathering facts information to .csv about all hosts (fatal too)? Do you have any idea?
Regrads,
Michał