Trying to install notepad onto a windows 2012 server and getting an error "Missing required arguement: product_id"
- Do I have to go lookup a product id for every .exe I want to install? Where do I get this? -notepad.yml #Install Notepad 6.9.2 from executable in shared drive - hosts: all gather_facts: false tasks: - name: Install Notepad 6.9.2 Package win_package: path: "https://10.10.128.0/mnt/ansible/npp.6.9.2.Installer.exe" arguements: "/install /passive /norestart" Log below - [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 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ddd09945-cf55-45bc-8826-dd3b33bc2430%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.