I want to ask some questions about working of Ansible.
1 - Which shell Ansible uses when logging to remote host ?
2 - If I have 10 tasks in a playbook, then ansible makes connection 10 times to remote host OR uses a single connection to perform all these 10 tasks ?
3 - If I am running 10 tasks on 2 hosts,
It will do first task on host 1 and then on host 2 then second task on host 1 and then on host 2, .. . so on,
So, here also the connection persists to both the hosts?
does it firstly connect to host 1, runs task 1 and then disconnects AND then connects to host 2, runs task 1 and then disconnects ?