I will have to defer to others on this one. I don't run ssh or perl on Windows 
servers. Our ansible connections to Windows servers are made over WinRM.

Walter
--
Walter Rowe, Division Chief
Infrastructure Services, OISM
Mobile: 202.355.4123

On Jan 20, 2023, at 9:12 AM, Josmi Jose <[email protected]> wrote:

Hi,

Modified it without ssh and still got the same error. Ran the perl script 
manually and connection from ansible to the windows machine works as well.

Modified to below:
shell: '"D:" && cd D:\\AMG\\SRM\\{{ kit_name.stdout }}\\ && perl srm_upgrade.pl 
–dw-instance={{dw_instance_1}}'
ASK [upgrade DW for 41] 
**********************************************************************************************************************************************************************************
task path: /opt/ansible/tsn_playbooks/playground/upgrade-srm.yaml:24
Using module file 
/usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
Pipelining is enabled.
<159.79.80.120> ESTABLISH SSH CONNECTION FOR USER: svc_sentf_ssh
<159.79.80.120> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 
KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o 
PasswordAuthentication=no -o 'User="svc_sentf_ssh"' -o ConnectTimeout=10 -o 
ControlPath=/opt/ansible/.ansible/cp/a65f93f539 159.79.80.120 'chcp.com 65001 
>nul 2>&1 && PowerShell -NoProfile -NonInteractive -ExecutionPolicy 
Unrestricted -EncodedCommand 
UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEAS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AQQBkAEEAQgBmAEEASABBAEEAWQBRAEIAeQBBAEgAUQBBAGMAdwBCAGIAQQBEAEEAQQBYAFEAQQBwAEEAQQBvAEEASgBnAEEAawBBAEcAVQBBAGUAQQBCAGwAQQBHAE0AQQBYAHcAQgAzAEEASABJAEEAWQBRAEIAdwBBAEgAQQBBAFoAUQBCAHkAQQBBAD0APQA='
<159.79.80.120> (1, '', '#< CLIXML\r\n<Objs Version="1.1.0.1" 
xmlns="http://schemas.microsoft.com/powershell/2004/04";><Obj S="progress" 
RefId="0"><TN 
RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64
 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first 
use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> 
</SD></PR></MS></Obj><S S="Error">Exception calling "Create" with "1" 
argument(s): "At line:4 char:21_x000D__x000A_</S><S S="Error">+ def 
_ansiballz_main():_x000D__x000A_</S><S S="Error">+                     
~_x000D__x000A_</S><S S="Error">An expression was expected after 
\'(\'._x000D__x000A_</S><S S="Error">At line:13 char:27_x000D__x000A_</S><S 
S="Error">+     except (AttributeError, OSError):_x000D__x000A_</S><S 
S="Error">+                           ~_x000D__x000A_</S><S S="Error">Missing 
argument in parameter list._x000D__x000A_</S><S S="Error">At line:15 
char:7_x000D__x000A_</S><S S="Error">+     if scriptdir is not 
None:_x000D__x000A_</S><S S="Error">+       ~_x000D__x000A_</S><S 
S="Error">Missing \'(\' after \'if\' in if statement._x000D__x000A_</S><S 
S="Error">At line:22 char:7_x000D__x000A_</S><S S="Error">+     if 
sys.version_info &lt; (3,):_x000D__x000A_</S><S S="Error">+       
~_x000D__x000A_</S><S S="Error">Missing \'(\' after \'if\' in if 
statement._x000D__x000A_</S><S S="Error">At line:22 char:30_x000D__x000A_</S><S 
S="Error">+     if sys.version_info &lt; (3,):_x000D__x000A_</S><S S="Error">+  
                            ~_x000D__x000A_</S><S S="Error">Missing expression 
after \',\'._x000D__x000A_</S><S S="Error">At line:22 
char:25_x000D__x000A_</S><S S="Error">+     if sys.version_info &lt; 
(3,):_x000D__x000A_</S><S S="Error">+                         
~_x000D__x000A_</S><S S="Error">The \'&lt;\' operator is reserved for future 
use._x000D__x000A_</S><S S="Error">At line:27 char:34_x000D__x000A_</S><S 
S="Error">+     def invoke_module(modlib_path, temp_path, 
json_params):_x000D__x000A_</S><S S="Error">+                                  
~_x000D__x000A_</S><S S="Error">Missing argument in parameter 
list._x000D__x000A_</S><S S="Error">At line:28 char:40_x000D__x000A_</S><S 
S="Error">+         z = zipfile.ZipFile(modlib_path, 
mode=\'a\')_x000D__x000A_</S><S S="Error">+                                     
   ~_x000D__x000A_</S><S S="Error">Missing argument in parameter 
list._x000D__x000A_</S><S S="Error">At line:31 char:33_x000D__x000A_</S><S 
S="Error">+         zinfo = zipfile.ZipInfo()_x000D__x000A_</S><S S="Error">+   
                              ~_x000D__x000A_</S><S S="Error">An expression was 
expected after \'(\'._x000D__x000A_</S><S S="Error">At line:34 
char:25_x000D__x000A_</S><S S="Error">+         z.writestr(zinfo, 
sitecustomize)_x000D__x000A_</S><S S="Error">+                         
~_x000D__x000A_</S><S S="Error">Missing argument in parameter 
list._x000D__x000A_</S><S S="Error">Not all parse errors were reported.  
Correct the reported errors and try again."_x000D__x000A_</S><S S="Error">At 
line:6 char:1_x000D__x000A_</S><S S="Error">+ $exec_wrapper = 
[ScriptBlock]::Create($split_parts[0])_x000D__x000A_</S><S S="Error">+ 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S 
S="Error">    + CategoryInfo          : NotSpecified: (:) [], 
MethodInvocationException_x000D__x000A_</S><S S="Error">    + 
FullyQualifiedErrorId : ParseException_x000D__x000A_</S><S S="Error"> 
_x000D__x000A_</S><S S="Error">The expression after \'&amp;\' in a pipeline 
element produced an object that was not valid. It must result in a command 
name,_x000D__x000A_</S><S S="Error"> a script block, or a CommandInfo 
object._x000D__x000A_</S><S S="Error">At line:7 char:2_x000D__x000A_</S><S 
S="Error">+ &amp;$exec_wrapper_x000D__x000A_</S><S S="Error">+  
~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error">    + CategoryInfo          : 
InvalidOperation: (:) [], RuntimeException_x000D__x000A_</S><S S="Error">    + 
FullyQualifiedErrorId : BadExpression_x000D__x000A_</S><S S="Error"> 
_x000D__x000A_</S></Objs>')
<159.79.80.120> Failed to connect to the host via ssh: #< CLIXML
<Objs Version="1.1.0.1" 
xmlns="http://schemas.microsoft.com/powershell/2004/04";><Obj S="progress" 
RefId="0"><TN 
RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64
 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first 
use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> 
</SD></PR></MS></Obj><S S="Error">Exception calling "Create" with "1" 
argument(s): "At line:4 char:21_x000D__x000A_</S><S S="Error">+ def 
_ansiballz_main():_x000D__x000A_</S><S S="Error">+                     
~_x000D__x000A_</S><S S="Error">An expression was expected after 
'('._x000D__x000A_</S><S S="Error">At line:13 char:27_x000D__x000A_</S><S 
S="Error">+     except (AttributeError, OSError):_x000D__x000A_</S><S 
S="Error">+                           ~_x000D__x000A_</S><S S="Error">Missing 
argument in parameter list._x000D__x000A_</S><S S="Error">At line:15 
char:7_x000D__x000A_</S><S S="Error">+     if scriptdir is not 
None:_x000D__x000A_</S><S S="Error">+       ~_x000D__x000A_</S><S 
S="Error">Missing '(' after 'if' in if statement._x000D__x000A_</S><S 
S="Error">At line:22 char:7_x000D__x000A_</S><S S="Error">+     if 
sys.version_info &lt; (3,):_x000D__x000A_</S><S S="Error">+       
~_x000D__x000A_</S><S S="Error">Missing '(' after 'if' in if 
statement._x000D__x000A_</S><S S="Error">At line:22 char:30_x000D__x000A_</S><S 
S="Error">+     if sys.version_info &lt; (3,):_x000D__x000A_</S><S S="Error">+  
                            ~_x000D__x000A_</S><S S="Error">Missing expression 
after ','._x000D__x000A_</S><S S="Error">At line:22 char:25_x000D__x000A_</S><S 
S="Error">+     if sys.version_info &lt; (3,):_x000D__x000A_</S><S S="Error">+  
                       ~_x000D__x000A_</S><S S="Error">The '&lt;' operator is 
reserved for future use._x000D__x000A_</S><S S="Error">At line:27 
char:34_x000D__x000A_</S><S S="Error">+     def invoke_module(modlib_path, 
temp_path, json_params):_x000D__x000A_</S><S S="Error">+                        
          ~_x000D__x000A_</S><S S="Error">Missing argument in parameter 
list._x000D__x000A_</S><S S="Error">At line:28 char:40_x000D__x000A_</S><S 
S="Error">+         z = zipfile.ZipFile(modlib_path, 
mode='a')_x000D__x000A_</S><S S="Error">+                                       
 ~_x000D__x000A_</S><S S="Error">Missing argument in parameter 
list._x000D__x000A_</S><S S="Error">At line:31 char:33_x000D__x000A_</S><S 
S="Error">+         zinfo = zipfile.ZipInfo()_x000D__x000A_</S><S S="Error">+   
                              ~_x000D__x000A_</S><S S="Error">An expression was 
expected after '('._x000D__x000A_</S><S S="Error">At line:34 
char:25_x000D__x000A_</S><S S="Error">+         z.writestr(zinfo, 
sitecustomize)_x000D__x000A_</S><S S="Error">+                         
~_x000D__x000A_</S><S S="Error">Missing argument in parameter 
list._x000D__x000A_</S><S S="Error">Not all parse errors were reported.  
Correct the reported errors and try again."_x000D__x000A_</S><S S="Error">At 
line:6 char:1_x000D__x000A_</S><S S="Error">+ $exec_wrapper = 
[ScriptBlock]::Create($split_parts[0])_x000D__x000A_</S><S S="Error">+ 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S 
S="Error">    + CategoryInfo          : NotSpecified: (:) [], 
MethodInvocationException_x000D__x000A_</S><S S="Error">    + 
FullyQualifiedErrorId : ParseException_x000D__x000A_</S><S S="Error"> 
_x000D__x000A_</S><S S="Error">The expression after '&amp;' in a pipeline 
element produced an object that was not valid. It must result in a command 
name,_x000D__x000A_</S><S S="Error"> a script block, or a CommandInfo 
object._x000D__x000A_</S><S S="Error">At line:7 char:2_x000D__x000A_</S><S 
S="Error">+ &amp;$exec_wrapper_x000D__x000A_</S><S S="Error">+  
~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error">    + CategoryInfo          : 
InvalidOperation: (:) [], RuntimeException_x000D__x000A_</S><S S="Error">    + 
FullyQualifiedErrorId : BadExpression_x000D__x000A_</S><S S="Error"> 
_x000D__x000A_</S></Objs>
fatal: [SE20GITVRST10]: FAILED! => {
    "changed": false,
    "module_stderr": "Exception calling \"Create\" with \"1\" argument(s): \"At 
line:4 char:21\r\n+ def _ansiballz_main():\r\n+                     ~\r\nAn 
expression was expected after '('.\r\nAt line:13 char:27\r\n+     except 
(AttributeError, OSError):\r\n+                           ~\r\nMissing argument 
in parameter list.\r\nAt line:15 char:7\r\n+     if scriptdir is not None:\r\n+ 
      ~\r\nMissing '(' after 'if' in if statement.\r\nAt line:22 char:7\r\n+    
 if sys.version_info < (3,):\r\n+       ~\r\nMissing '(' after 'if' in if 
statement.\r\nAt line:22 char:30\r\n+     if sys.version_info < (3,):\r\n+      
                        ~\r\nMissing expression after ','.\r\nAt line:22 
char:25\r\n+     if sys.version_info < (3,):\r\n+                         
~\r\nThe '<' operator is reserved for future use.\r\nAt line:27 char:34\r\n+    
 def invoke_module(modlib_path, temp_path, json_params):\r\n+                   
               ~\r\nMissing argument in parameter list.\r\nAt line:28 
char:40\r\n+         z = zipfile.ZipFile(modlib_path, mode='a')\r\n+            
                            ~\r\nMissing argument in parameter list.\r\nAt 
line:31 char:33\r\n+         zinfo = zipfile.ZipInfo()\r\n+                     
            ~\r\nAn expression was expected after '('.\r\nAt line:34 
char:25\r\n+         z.writestr(zinfo, sitecustomize)\r\n+                      
   ~\r\nMissing argument in parameter list.\r\nNot all parse errors were 
reported.  Correct the reported errors and try again.\"\r\nAt line:6 
char:1\r\n+ $exec_wrapper = [ScriptBlock]::Create($split_parts[0])\r\n+ 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo    
      : NotSpecified: (:) [], MethodInvocationException\r\n    + 
FullyQualifiedErrorId : ParseException\r\n \r\nThe expression after '&' in a 
pipeline element produced an object that was not valid. It must result in a 
command name,\r\n a script block, or a CommandInfo object.\r\nAt line:7 
char:2\r\n+ &$exec_wrapper\r\n+  ~~~~~~~~~~~~~\r\n    + CategoryInfo          : 
InvalidOperation: (:) [], RuntimeException\r\n    + FullyQualifiedErrorId : 
BadExpression\r\n ",
    "module_stdout": "",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",

On Friday, January 20, 2023 at 2:54:10 PM UTC+1 [email protected] wrote:
    shell: ssh {{ ansible_user }}@{{ ansible_host }}  "D:" && cd 
D:\\AMG\\SRM\\{{ kit_name.stdout }}\\ && perl 
srm_upgrade.pl<https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsrm_upgrade.pl%2F&data=05%7C01%7Cwalter.rowe%40nist.gov%7Cec46ed31f3ef46f7eada08dafaf057a7%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C638098207437858673%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ixGQBI7WmesY2ilq3FEXOoP0rW6theZbDSTZfI3jc1M%3D&reserved=0>
 –dw-instance={{dw_instance_1}}

Why do you do the ssh? ansible does that by default. Does your Windows machine 
support ssh? perl?

Walter
--
Walter Rowe, Division Chief
Infrastructure Services, OISM
Mobile: 202.355.4123<tel:(202)%20355-4123>

On Jan 20, 2023, at 8:49 AM, Josmi Jose <[email protected]> wrote:

Hi,

I am trying to run a run a perl script in the windows server using ansible 
playbook located in linux and getting the below error.Can some one help me.


    "changed": false,
    "module_stderr": "Exception calling \"Create\" with \"1\" argument(s): \"At 
line:4 char:21\r\n+ def _ansiballz_main():\r\n+                     ~\r\nAn 
expression was expected after '('.\r\nAt line:13 char:27\r\n+     except 
(AttributeError, OSError):\r\n+                           ~\r\nMissing argument 
in parameter list.\r\nAt line:15 char:7\r\n+     if scriptdir is not None:\r\n+ 
      ~\r\nMissing '(' after 'if' in if statement.\r\nAt line:22 char:7\r\n+    
 if sys.version_info < (3,):\r\n+       ~\r\nMissing '(' after 'if' in if 
statement.\r\nAt line:22 char:30\r\n+     if sys.version_info < (3,):\r\n+      
                        ~\r\nMissing expression after ','.\r\nAt line:22 
char:25\r\n+     if sys.version_info < (3,):\r\n+                         
~\r\nThe '<' operator is reserved for future use.\r\nAt line:27 char:34\r\n+    
 def invoke_module(modlib_path, temp_path, json_params):\r\n+                   
               ~\r\nMissing argument in parameter list.\r\nAt line:28 
char:40\r\n+         z = zipfile.ZipFile(modlib_path, mode='a')\r\n+            
                            ~\r\nMissing argument in parameter list.\r\nAt 
line:31 char:33\r\n+         zinfo = zipfile.ZipInfo()\r\n+                     
            ~\r\nAn expression was expected after '('.\r\nAt line:34 
char:25\r\n+         z.writestr(zinfo, sitecustomize)\r\n+                      
   ~\r\nMissing argument in parameter list.\r\nNot all parse errors were 
reported.  Correct the reported errors and try again.\"\r\nAt line:6 
char:1\r\n+ $exec_wrapper = [ScriptBlock]::Create($split_parts[0])\r\n+ 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo    
      : NotSpecified: (:) [], MethodInvocationException\r\n    + 
FullyQualifiedErrorId : ParseException\r\n \r\nThe expression after '&' in a 
pipeline element produced an object that was not valid. It must result in a 
command name,\r\n a script block, or a CommandInfo object.\r\nAt line:7 
char:2\r\n+ &$exec_wrapper\r\n+  ~~~~~~~~~~~~~\r\n    + CategoryInfo          : 
InvalidOperation: (:) [], RuntimeException\r\n    + FullyQualifiedErrorId : 
BadExpression\r\n ",
    "module_stdout": "",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 1
}

Playbook:

- hosts: SRM

  vars:
      ansible_become_user: '{{ ansible_user }}'
      release_version: "Latest"

  tasks:
   - name: "upgrade DW for {{dw_instance_1}}"
    become: yes
    become_user: Administrator
    shell: ssh {{ ansible_user }}@{{ ansible_host }}  "D:" && cd 
D:\\AMG\\SRM\\{{ kit_name.stdout }}\\ && perl 
srm_upgrade.pl<https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsrm_upgrade.pl%2F&data=05%7C01%7Cwalter.rowe%40nist.gov%7Cec46ed31f3ef46f7eada08dafaf057a7%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C638098207437858673%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ixGQBI7WmesY2ilq3FEXOoP0rW6theZbDSTZfI3jc1M%3D&reserved=0>
 –dw-instance={{dw_instance_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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5942d897-a7c3-45e9-a8b3-89cb5054c054n%40googlegroups.com<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fansible-project%2F5942d897-a7c3-45e9-a8b3-89cb5054c054n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7Cwalter.rowe%40nist.gov%7Cec46ed31f3ef46f7eada08dafaf057a7%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C638098207437858673%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=DURxMh5pGDyAlNGyvmYOxeG9ae15snA6740OrSzL4x0%3D&reserved=0>.


--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1ce70d33-e9e9-41cd-b535-0684a384478fn%40googlegroups.com<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fansible-project%2F1ce70d33-e9e9-41cd-b535-0684a384478fn%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7Cwalter.rowe%40nist.gov%7Cec46ed31f3ef46f7eada08dafaf057a7%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C638098207437858673%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ZCJdhLg4XecyVwmCzpamO%2BysqEsxtC%2BJHcRJIg8Q4FY%3D&reserved=0>.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0AE0DFCD-9DDB-4377-8AC6-78182E2F8731%40nist.gov.

Reply via email to