Ansible Output improvements
Using AnsibleOutput type, default type data will output 4 last lines, while all lines would be available if needed.
This commit is contained in:
parent
92bd7ba69f
commit
9f0d669b4c
3 changed files with 7 additions and 4 deletions
3
ansible/profile.d/TypeData.ps1
Normal file
3
ansible/profile.d/TypeData.ps1
Normal file
|
@ -0,0 +1,3 @@
|
|||
Update-TypeData -TypeName "AnsibleOutput" -DefaultDisplayPropertySet 'Machine','Runtime','Output(Last 4 Lines)' -Force
|
||||
Update-TypeData -TypeName "AnsibleOutput" -MemberType ScriptProperty -MemberName 'Output(Last 4 Lines)' -Value {$_.Output | Select-Object -Last 4 } -Force
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue