mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
windows testing - changes to accomodate future behaviour changes (#45464)
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
$os = [Environment]::OSVersion
|
||||
$major = $os.Version.Major
|
||||
$minor = $os.Version.Minor
|
||||
$ok = $false
|
||||
|
||||
if(($major -gt 6)){
|
||||
$ok = $true
|
||||
}
|
||||
elseif (($major -eq 6) -and ($minor -ge 3)){
|
||||
$ok = $true
|
||||
}
|
||||
|
||||
$ok
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
|
||||
- name: get os info
|
||||
script: ../files/Test-Os.ps1
|
||||
win_shell: '[Environment]::OSVersion.Version -ge [Version]"6.3"'
|
||||
register: os
|
||||
|
||||
- name: Perform with os Windows 2012R2 or newer
|
||||
|
||||
Reference in New Issue
Block a user