[root@localhost group_vars]# ansible-playbook notepad.yml -vvvv
Using /etc/ansible/ansible.cfg as config file
Loaded callback default of type stdout, v2.0
PLAYBOOK: notepad.yml **********************************************************
1 plays in notepad.yml
PLAY [all] *********************************************************************
TASK [Install Notepad 6.9.2 Package] *******************************************
task path: /etc/ansible/group_vars/notepad.yml:5
<10.10.128.0> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO 10.10.128.0
<10.10.128.0> EXEC Set-StrictMode -Version Latest
(New-Item -Type Directory -Path $env:temp -Name "ansible-tmp-1471633257.79-18742 9094883462").FullName | Write-Host -Separator ''; <10.10.128.0> PUT "/tmp/tmpFMnfbg" TO "C:\Users\Administrator\AppData\Local\Temp \ansible-tmp-1471633257.79-187429094883462\win_package.ps1"
<10.10.128.0> EXEC Set-StrictMode -Version Latest
Try
{
& 'C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-1471633257.79-187429094 883462\win_package.ps1'
}
Catch
{
$_obj = @{ failed = $true }
If ($_.Exception.GetType)
{
$_obj.Add('msg', $_.Exception.Message)
}
Else
{
$_obj.Add('msg', $_.ToString())
}
If ($_.InvocationInfo.PositionMessage)
{
$_obj.Add('exception', $_.InvocationInfo.PositionMessage)
}
ElseIf ($_.ScriptStackTrace)
{
$_obj.Add('exception', $_.ScriptStackTrace)
}
Try
{
$_obj.Add('error_record', ($_ | ConvertTo-Json | ConvertFrom-Json))
}
Catch
{
}
Echo $_obj | ConvertTo-Json -Compress -Depth 99
Exit 1
}
Finally { Remove-Item "C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-147 1633257.79-187429094883462" -Force -Recurse -ErrorAction SilentlyContinue }
fatal: [10.10.128.0]: FAILED! => {"changed": false, "failed": true, "invocation" : {"module_name": "win_package"}, "msg": "Missing required argument: product_id" }
NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @notepad.retry
PLAY RECAP *********************************************************************
10.10.128.0 : ok=0 changed=0 unreachable=0 failed=1