I'am using "ansible cassandra -m ping " or "ansible all -m ping " and is 
can easily ssh also but the moment I run the playbook it shows me this 
error.


On Monday, December 4, 2017 at 8:33:38 PM UTC+5, Dick Visser wrote:
>
> Your comment "it perfectly connects" indicates you used ansible -m 
> ping, but the authentication error suggests you did ICMP ping. 
>
> So, which ping did you use? 
>
>
> Thanks 
>
> DIck 
>
>
> On 4 December 2017 at 13:03, Muhammad Mahir <[email protected] 
> <javascript:>> wrote: 
> >> Thank you so much for your reply. 
> > 
> > 
> > I've got your point and have removed connection: local from my playbook. 
> But 
> > after that a new output appears this time. 
> > 
> > [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user 
> and 
> > make sure become_method is 'sudo' (default). This feature will be 
> removed in 
> > version 2.6. Deprecation warnings can be disabled by setting 
> > deprecation_warnings=False in ansible.cfg. 
> > 
> > PLAY [Cassandra] 
> > *************************************************************** 
> > 
> > TASK [Gathering Facts] 
> > ********************************************************* 
> > fatal: [10.0.0.243]: UNREACHABLE! => {"changed": false, "msg": "Failed 
> to 
> > connect to the host via ssh: Permission denied 
> (publickey,password).\r\n", 
> > "unreachable": true} 
> > to retry, use: --limit @/etc/ansible/playbooks/cassandra-playbook.retry 
> > 
> > PLAY RECAP 
> > ********************************************************************* 
> > 10.0.0.243                 : ok=0    changed=0    unreachable=1   
>  failed=0 
> > 
> > although when I ping 10.0.0.243 it perfectly connects. what can be the 
> issue 
> > 
> > -- 
> > 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] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/ansible-project/346e4fca-e340-486e-9312-45e3e46ef47a%40googlegroups.com.
>  
>
> > 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Dick Visser 
> GÉANT 
>
> Want to join us? We're hiring: https://www.geant.org/jobs 
>

-- 
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/0a1b534e-686b-45e3-bc13-9c4564f60459%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to