run a netcat server in one terminal/tmux pane and a client in a different one. Now all lines entered in the client side, will be "typed" into multiple ssh sessions.
In this version all output comes back in a single stream:
nc -lk 12345 | while read line; do ansible -u centos -i hosts all -m raw -a "$line"; done