I have a playbook that registers three variables. I want to produce a CSV report of those three variables on all hosts in my inventory.
This SO answer suggests to use:
- local_action: copy content={{ foo_result }} dest=/path/to/destination/file
But that does not append to the csv file. Also, I have to manually compose by comma separators in this case.
Any ideas on how to log (append) variables to a local file?