--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5b01e4f8-c9ba-45ce-b015-eca43ff18e71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for the pointer. I’ll take a look at your suggested playbook and reply back. Thanks Again!
Sent from Mail for Windows 10
From: Jordan Borean
Sent: Thursday, April 26, 2018 2:39 AM
To: Ansible Project
Subject: Re: [ansible-project] "/bin/sh: 1: powershell: not found\n"
We don't support PowerShell core (pwsh) and the PowerShell/WinRM is currently only designed for Windows hosts which use PowerShell.exe not pwsh.exe. As I said, the issue you have is that you are running the PowerShell module on the localhost as a local command and not on the Windows host through WinRM like it should be.
Thanks
Jordan
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c8842e3c-5995-4beb-9b97-44068d9b5cd8%40googlegroups.com.
Thanks. I had connection=local which I removed and its working fine now.
From: Jordan Borean
Sent: Thursday, April 26, 2018 12:19 AM
To: Ansible Project
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6a11597c-08e3-4be5-99a3-5a693c0c84de%40googlegroups.com.
PLAY [localhost] *******************************************************************************************************************************************************
TASK [ensure instances are running] ************************************************************************************************************************************
changed: [localhost]
TASK [ensure Automation_Anywhere_Enterprise_Client is installed via win_package] ***************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "/bin/sh: powershell: command not found\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 127}
to retry, use: --limit @/root/awswinins.retry
PLAY RECAP *************************************************************************************************************************************************************
localhost : ok=1 changed=1 unreachable=0 failed=1
You are running the module over SSH with the wrong shell plugin. Ensure this is run with either ‘ansible_connection: winrm’ or ‘ansible_connection: psrp’ so the PowerShell modules work properly.
[win]
windows-hostname
[win:vars]
ansible_user=Administrator
ansible_password=...
ansible_port=5986
ansible_connection=winrm
ansible_winrm_server_cert_validation=ignore