Make sure your are typing the password as the authentication mechanism may
be keyboard interactive for the ssh user by passing -k option when running
the command

On Wed, 15 May 2019, 3:04 pm Ebrahim Kutty, <[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/ansible-project/efddcea0-89d8-4f34-b141-14973e6171c7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAP8i3VkrwhxY9yrmPAZO9rRdMAESM9pOuVphoU9v-4DHEzCbVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to