mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
windows testing - changes to accomodate future behaviour changes (#45464)
This commit is contained in:
parent
0b029d6792
commit
881f3a599c
5 changed files with 24 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue