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]> 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]. > 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/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/CAL8fbwOAAQ4d4%2B4qJq94jqbdGuzK2V3k_Ga0sThHe3%2BpGgKR7A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
