When I test ping command with ansible, I am getting the below error, (red 
colored)

/etc/ansible$ more hosts
[email protected] 

/etc/ansible$ more ansible.cfg 
[defaults]
remote_tmp = /tmp/ansible-$USER
#remote_tmp = $HOME/.ansible/tmp
local_tmp = $HOME/.ansible/tmp

--------------------------------------------------------------------------------------------------------
ebrahim@ebrahim-pc:/etc/ansible$ ansible all -m ping
[email protected] | FAILED! => {
    "changed": false, 
    "module_stderr": "Shared connection to 192.168.100.128 closed.\r\n", 
    "module_stdout": "  File 
\"/tmp/ansible-root/ansible-tmp-1557907388.83-40454918869493/AnsiballZ_ping.py\",
 
line 39\r\n    with open(module, 'wb') as f:\r\n           
 ^\r\nSyntaxError: invalid syntax\r\n",                                     
                                                                            
                                  
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", 
    "rc": 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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/efddcea0-89d8-4f34-b141-14973e6171c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to