leaf-1 | UNREACHABLE! => {
"changed": false,
"msg": "Authentication failure.",
"unreachable": true
}
leaf-2 | UNREACHABLE! => {
"changed": false,
"msg": "Authentication failure.",
"unreachable": true
}
i can PING / SSH to network devices from Ansible server but when i run the playbook , it fails.
No idea if i have to add something in playbook or ansible.cfg . Any Suggestion please ?
--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/92ff7b85-295a-4910-9b00-4a3b50b6cbb4%40googlegroups.com.
Jonathan Cha'gara Lozada De La Matta
He / Him / His
Senior Automation Practice Consultant & Automation CoP Manager
Join the Automation CoP! https://red.ht/autocop
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BKHnKoR9jLgB2me1rrLJNwwr0cHiTCgeg6ej8b2VC9%3D-A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACAWMpro%3DuZp-0RhpnLuuYokcN27FW6cMFC4P7cw0wSpeK7hLg%40mail.gmail.com.
ansible.cfg :
[defaults]
inventory = ./inventories/
Inventories :
[leaf]
leaf-1
leaf-2
- hosts: all
remote_user: admin
vars:
authorized_key_list:
- name: admin
authorized_keys:
- key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
state: present
roles:
- { role: GROG.authorized-key }--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/bff884e3-908c-472c-9d1c-ca784ef22087%40googlegroups.com.
[root@ansible01 test]# ping leaf-1
PING leaf-1.lab.com (192.168.7.1) 56(84) bytes of data.
64 bytes from testing_1F.lab.com (192.168.7.1): icmp_seq=1 ttl=253 time=0.701 ms
64 bytes from testing_1F.lab.com (192.168.7.1): icmp_seq=2 ttl=253 time=0.623 ms
64 bytes from testing_1F.lab.com (192.168.7.1): icmp_seq=3 ttl=253 time=0.736 ms[root@ansible01 test]# ansible leaf-1 -m ping
/usr/lib/python2.7/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.22) or chardet (2.2.1) doesn't match a supported version!
RequestsDependencyWarning)
leaf-1 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: