ansible.cfg :
[defaults]
inventory = ./inventories/
Inventories :
[leaf]
leaf-1
leaf-2
playbook :
- 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 }
On Saturday, 21 December 2019 20:27:59 UTC+5:30, Nirmal Gauda wrote:
>
> I am a Newbie to Ansible , writing my first playbook.
>
> I can not SSH / PING to network Devices.
>
> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/bff884e3-908c-472c-9d1c-ca784ef22087%40googlegroups.com.