When I execute an ansible ad-hoc command, output from each host is consolidated and not able to see all of them. I could not find any options to explicitly instruct ansible.
Currently this is what happens even with -f 1 option
$ ansible all -a hostname -i inventory.yaml -f 1 172.16.1.5 172.16.1.6 172.16.1.7 | CHANGED | rc=0 >> node1
Instead I would like to see the output of
hostname command from each hosts in the inventory on new lines.
all: hosts: 172.16.1.5 172.16.1.6 172.16.1.7