When I test ping command with ansible, I am getting the below error, (red colored)
/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
"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
-------------------------------------------------------------------------------------------------------------