Ansible has the ability to work faster when pipelining is enabled. However there are some requirements to make this work. Pipelinging must be enabled in ansible.cfg or in the inventory-file and requiretty must be dissabled.
I already checked -vvvv, nothing showed up concering 'pipelining'. Also, I do not notice any difference in speed.
Because of all this I would like to know if: is there a way to verify Ansible is using the pipelining ability?
To check if pipelining is in use, call: ansible test-server -vvv -m shell -a 'echo ok'
.
If you see only one SSH: EXEC ssh
record with something like /bin/sh -c '/usr/bin/python && sleep 0'
, then pipelining is in use.
If you see three to five SSH: EXEC ssh
/SSH: EXEC sftp
/PUT
records, executing command.py
from tmp path, then pipelining mode is not active.