connection plugin

The plugin that decides how Ansible reaches a host: SSH by default, or local, WinRM, a container runtime or a network device protocol.

In more detail

Which one is used is just a variable, ansible_connection, so it can be set per host or per group. SSH is right almost every time; local runs on the control node; WinRM or PowerShell remoting suits Windows; there are plugins for containers and for network devices that offer only a command line.

Related terms

Taught in

References