Ansible remote connection methods
By default, Ansible communicates with the remote machine using the SSH protocol (native OpenSSH), as you learned previously in this book. For remote nodes, which do not have SSH server options, it is possible to use other connection methods such as WinRM for Microsoft Windows remote machines or httpapi for API-based remote devices (such as Cisco NXAPI and Arista eAPI).
The following diagram shows the different connection methods used by Ansible for automating different devices and platforms:
Figure 6.1 – Connection methods used by Ansible
You can find the available Ansible connection plugins by using the ansible-doc
command, as follows:
Figure 6.2 – Ansible connection plugins
Ansible Inventory and Connection Parameters
Refer to https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#connecting-to-hosts-behavioral-inventory-parameters for specific connection parameters...