mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
New module: Add module to add/remove a network static route on windows (windows/win_route) (#23405)
* adds win_route windows module * fix documentation indent * fix documentation pep8 issues * fix documentation issues * genaral code review * changed 'supported_by' in doc, supports_check_mode removed * use of powershell cmdlet instead of route command, destnation in CIDR format, adds check mode support * adds win_psmodule module * documentation review * documentation review * removed files accidentatlly pushed * add integration tests, add return in documentation * add conditional statement in test, add os requirementes in documentation * fix documentation * fix os check in tests
This commit is contained in:
parent
13adee7f44
commit
eda6a6baee
7 changed files with 316 additions and 0 deletions
13
test/integration/targets/win_route/files/Test-Os.ps1
Normal file
13
test/integration/targets/win_route/files/Test-Os.ps1
Normal file
|
@ -0,0 +1,13 @@
|
|||
$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
|
Loading…
Add table
Add a link
Reference in a new issue