hi guys, the below playbook seems to work ok except when the ouput gets written to the local file, it only shows the output of one host instead of 2 that I was expecting.
What needs to change so that I can have the output for both hosts in perf.
hi guys, the below playbook seems to work ok except when the ouput gets written to the local file, it only shows the output of one host instead of 2 that I was expecting.
What needs to change so that I can have the output for both hosts in perf.
You are effectively overwriting the file with the contents of each host, onto localhost.
Ultimately you will need differently named files, or do something more complex using a template and run_once: true
and inside the template looping all hosts, getting their output
, and putting it in the file.