mirror of
https://github.com/ansible/ansible.git
synced 2026-08-03 00:22:10 +02:00
(cherry picked from commit bb030db546)
This commit is contained in:
@@ -32,15 +32,8 @@
|
||||
- raw_out.stdout_lines[4] == "winrm"
|
||||
- raw_out.stdout_lines[5] == "string - \U0001F4A9"
|
||||
|
||||
# Become only works on Server 2008 when running with basic auth, skip this host for now as it is too complicated to
|
||||
# override the auth protocol in the tests.
|
||||
- name: check if we running on Server 2008
|
||||
win_shell: '[System.Environment]::OSVersion.Version -ge [Version]"6.1"'
|
||||
register: os_version
|
||||
|
||||
- name: test out become with psrp
|
||||
win_whoami:
|
||||
when: os_version|bool
|
||||
register: whoami_out
|
||||
become: yes
|
||||
become_method: runas
|
||||
@@ -50,7 +43,6 @@
|
||||
assert:
|
||||
that:
|
||||
- whoami_out.account.sid == "S-1-5-18"
|
||||
when: os_version|bool
|
||||
|
||||
- name: test out async with psrp
|
||||
win_shell: Start-Sleep -Seconds 2; Write-Output abc
|
||||
|
||||
Reference in New Issue
Block a user