feat: Set ansible_connection to winrm for Windows hosts

This changes the inventory plugin so that it sets the ansible_connection
to winrm if it detected a Windows host. If it did not detect a Windows
host the ansible_connection is no longer set, so Ansible falls back to
its default value of ssh. The detection of SSH services for hosts using
winrm is disabled.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
Felix Matouschek
2024-04-15 14:28:57 +02:00
parent 7c5de4adf9
commit a3abcbedd4
4 changed files with 251 additions and 15 deletions

View File

@@ -1,3 +1,4 @@
addict
pytest
pytest-ansible
pytest-mock