Interview Prep/Ansible/Vault, Performance and Execution Behaviour

`pipelining = True` was turned on, but runs are no faster

IntermediateTroubleshootingVault, Performance and Execution Behaviour
Answer

Likely causes → The setting is not applied (wrong section or wrong config file), the connection plugin does not use it, or a become method that needs a tty disables it. Some modules, such as copy and template, still need file transfers.

Diagnose →

ansible-config dump --only-changed | grep -i pipelining
ansible web01 -m ping -vvvv | grep -cE 'PUT|sftp'

With pipelining active, simple modules show no PUT of the AnsiballZ file.

Fix → Put the setting in the [ssh_connection] (or [connection]) section of the ansible.cfg that is actually in use, and make sure requiretty is not set in sudoers.

Prevent → Benchmark changes with profile_tasks before and after, instead of guessing.

All Ansible questions Roadmap: Ansible

More on Vault, Performance and Execution Behaviour