Created a dedicated ansible package
This commit is contained in:
parent
c6cc116564
commit
aca79c186a
|
@ -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();
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"package": {
|
||||||
|
"Condition": [
|
||||||
|
{
|
||||||
|
"custom": "Get-Command ansible -Type Application",
|
||||||
|
"System": null,
|
||||||
|
"Hostname": null,
|
||||||
|
"Username": null,
|
||||||
|
"Logic": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Name": "ansible"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue