Created a dedicated ansible package

This commit is contained in:
lksz 2020-12-02 00:30:57 -05:00
parent c6cc116564
commit aca79c186a
4 changed files with 15 additions and 1 deletions

View File

@ -32,7 +32,7 @@ $local:SaveConsoleColor = [Console]::ForegroundColor
$env:ANSIBLE_DEPRECATION_WARNINGS='false' $env:ANSIBLE_DEPRECATION_WARNINGS='false'
Invoke-Expression $expr | ForEach-Object { Invoke-Expression $expr | ForEach-Object {
if( -not $OneLine ) { return $_ }; if( -not $OneLine ) { return $_ };
$local:res = $_.Split('|'); $local:res = $_.Split('|') + @('', '', '', '')
$res = [PSCustomObject]([ordered]@{ $res = [PSCustomObject]([ordered]@{
Machine = $res[0].Trim(); Machine = $res[0].Trim();
Status = $res[1].Trim(); Status = $res[1].Trim();

14
ansible/_.package.json Normal file
View File

@ -0,0 +1,14 @@
{
"package": {
"Condition": [
{
"custom": "Get-Command ansible -Type Application",
"System": null,
"Hostname": null,
"Username": null,
"Logic": 0
}
],
"Name": "ansible"
}
}