local connection

The connection plugin that runs modules directly on the control node, with no SSH and no network at all.

In more detail

Setting ansible_connection=local on localhost is how this course runs every example on one laptop. Because connection settings are trusted variables, setting local on any host name makes the module run on your own machine while wearing that host's name, which is a surprising result worth knowing.

Example

localhost ansible_connection=local

Related terms

Taught in

References