Hi all,
I'm new to ansible, and I need to backup a junos device configuration, I
tried the solution bellow
#### host
aa.bb.cc.dd
#####playbook
---
- name: Get configuration
hosts: all
connection: local
gather_facts: no
roles:
- Juniper.junos
tasks:
- name: Getting config ... please wait
junos_get_config:
host={{ inventory_hostname }}
user=XXXX
passwd=xxxx
dest=etc/ansible/Backups/{{ inventory_hostname }}.conf
logfile=/tmp/changes.log
After running the playbook, i get the following error:
PLAY [Get configuration]
*******************************************************
TASK [Getting config ... please wait]
******************************************
fatal: [aa.bb.cc.dd]: FAILED! => {"changed": false, "failed": true, "msg":
"unable to connect to aa.bb.cc.dd: ConnectTimeoutError(1aa.bb.cc.dd)"}
to retry, use: --limit @/etc/ansible/playbooks/test.retr
PLAY RECAP
*********************************************************************
aa.bb.cc.dd : ok=0 changed=0 unreachable=0 failed=1
How Can I solve this problem ?
--
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/ffbc1a8c-2351-40c1-88da-25b4b6916728%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.