Updated Ansible scripts
Cleaner output, with focus on last lines of output by default
This commit is contained in:
parent
7cb9f09c8c
commit
a64d3c83af
2 changed files with 7 additions and 3 deletions
|
@ -1,6 +1,10 @@
|
|||
[CmdletBinding()]param(
|
||||
[string[]]$Remotes = 'All',
|
||||
[switch]$RawOutput
|
||||
[switch]$RawOutput,
|
||||
[switch]$PassThruOnly
|
||||
)
|
||||
|
||||
Invoke-ViaAnsible -Command "Update-OSz -Mode Auto" -Remotes:$($Remotes.ToLower()) -RawOutput:$RawOutput
|
||||
Invoke-ViaAnsible -Command "Update-OSz -Mode Auto" -Remotes:$($Remotes.ToLower()) -RawOutput:$RawOutput | ForEach-Object {
|
||||
if( $PassThru ) { return $_ }
|
||||
$_ | Select-Object Machine, RunTime, @{L='Output';E={$_.Output | Select-Object -last 4}}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue