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>
32 lines
730 B
YAML
32 lines
730 B
YAML
---
|
|
- name: test out Windows SSH specific tests
|
|
hosts: windows-ssh
|
|
serial: 1
|
|
gather_facts: no
|
|
|
|
tasks:
|
|
- name: test out become with Windows SSH
|
|
win_whoami:
|
|
register: win_ssh_become
|
|
become: yes
|
|
become_method: runas
|
|
become_user: SYSTEM
|
|
|
|
- name: assert test out become with Windows SSH
|
|
assert:
|
|
that:
|
|
- win_ssh_become.account.sid == "S-1-5-18"
|
|
|
|
- name: test out async with Windows SSH
|
|
win_shell: Write-Host café
|
|
async: 20
|
|
poll: 3
|
|
register: win_ssh_async
|
|
|
|
- name: assert test out async with Windows SSH
|
|
assert:
|
|
that:
|
|
- win_ssh_async is changed
|
|
- win_ssh_async.rc == 0
|
|
- win_ssh_async.stdout == "café\n"
|
|
- win_ssh_async.stderr == ""
|