Strage behaviour related to localhost in ansible 2.2

Hi all,

Can anyone explain why targeting localhost explicitly instead of defaulting to localhost behaves differently?

Cheers,

Stefan

Ansible creates an implicit localhost when it is used, but not defined in inventory. The implicit localhost sets connection to ‘local’, among other things.

When you define localhost, it inherits the default connection type (‘smart/ssh’ unless you changed config), so you need to either define the connection for the host/command line/play/task/config.