mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 16:23:10 +00:00
This creates a LocalConnection class for the case when operating on the localhost. If the host, argument to Connection.connect(), matches 127.0.0.1, localhost, or the name of the host as returned by os.uname()[1], Connection.connect() will opt to use LocalConnection instead of ParamikoConnection. LocalConnection implements connect(), exec_command(), put_file(), and close().