Ansible modifications

--one-line output is the default
added stopwatch timing to the default output
combined Status and RC into a single 2 element array, so that # of
columns would default to table format

Instead of -OneLine a -RawOutput switch was introduced to force full
output
This commit is contained in:
lksz 2021-05-05 17:57:09 -04:00
parent 35fe3a156f
commit 7cb9f09c8c
3 changed files with 10 additions and 10 deletions

View file

@ -1,7 +1,6 @@
[CmdletBinding()]param(
[string[]]$Remotes = 'All',
[switch]$OneLine
[switch]$RawOutput
)
Invoke-ViaAnsible -Command "Update-OSz -Mode Auto" -Remotes:$($Remotes.ToLower()) -OneLine:$OneLine
Invoke-ViaAnsible -Command "Update-OSz -Mode Auto" -Remotes:$($Remotes.ToLower()) -RawOutput:$RawOutput