mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
8ef2e6da05
* Add support for Windows hosts in the SSH connection plugin * fix Python 2.6 unit test and sanity issues * fix up connection tests in CI, disable SCP for now * ensure we don't pollute the existing environment during the test * Add connection_windows_ssh to classifier * use test dir for inventory file * Required powershell as default shell and fix tests * Remove exlicit become_methods on connection * clarify console encoding comment * ignore recent SCP errors in integration tests * Add cmd shell type and added more tests * Fix some doc issues * revises windows faq * add anchors for windows links * revises windows setup page * Update changelogs/fragments/windows-ssh.yaml Co-Authored-By: jborean93 <jborean93@gmail.com>
12 lines
598 B
Django/Jinja
12 lines
598 B
Django/Jinja
[windows-ssh]
|
|
{% for host in vars.groups.winrm %}
|
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_user={{ hostvars[host]['ansible_user'] }}{{ ' ansible_ssh_private_key_file=' ~ hostvars[host]['ansible_ssh_private_key_file'] if (hostvars[host]['ansible_ssh_private_key_file']|default()) else '' }}
|
|
{% endfor %}
|
|
|
|
[windows-ssh:vars]
|
|
ansible_shell_type={{ test_shell_type }}
|
|
ansible_connection=ssh
|
|
ansible_port=22
|
|
# used to preserve the existing environment and not touch existing files
|
|
ansible_ssh_extra_args="-o UserKnownHostsFile=/dev/null"
|
|
ansible_ssh_host_key_checking=False
|