Check if handling / working with Ansible pipelines is allowed

Ansible has the ability to run faster when pipelining is enabled. However, there are some requirements for this work. Transposition must be enabled in the ansible.cfg file or in the inventory file, and requiretty must be disabled.

I already checked -vvvv, nothing appeared showing "pipelining". In addition, I do not see a difference in speed.

Because of all this, I would like to know if there is: is there a way to verify that Ansible uses the pipelining ability?

+5
source share
1 answer

To check if pipelining is used, call: ansible test-server -vvv -m shell -a 'echo ok' .

If you see only one SSH: EXEC ssh entry with something like /bin/sh -c '/usr/bin/python && sleep 0' , then pipelining is used.

If you see three to five SSH: EXEC ssh / SSH: EXEC sftp / PUT SSH: EXEC sftp running command.py from the tmp path, then pipelining is inactive.

+8
source

Source: https://habr.com/ru/post/1266789/


All Articles