Create a local Windows (via WSL) connection plugin #26

Open
opened 2024-04-07 22:54:02 +00:00 by benie · 0 comments
Owner

Ansible running inside WSL can have direct access to the cmd.exe/powershell.exe executables on the PATH. With such access it should be possible to implement a connection plugin which uses these directly, inspired by the local connection plugin for non-Windows machines.

This would remove the need to enable WinRM or sshd in order to connect to the local Windows host from the WSL virtual machine which requies additional setup before being usable.

Ansible running inside WSL can have direct access to the `cmd.exe`/`powershell.exe` executables on the `PATH`. With such access it should be possible to implement a connection plugin which uses these directly, inspired by the [local connection plugin](https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/connection/local.py) for non-Windows machines. This would remove the need to enable WinRM or sshd in order to connect to the local Windows host from the WSL virtual machine which requies additional setup before being usable.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: config/local#26
No description provided.