Hi all,
I'm new to ansible, I need to backup a junos device configuration,


###hosts

[junos]
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=xxxxx
        passwd=xxxxxx
        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(aa.bb.cc.dd)"}
to retry, use: --limit @/etc/ansible/playbooks/test.retry

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/d2e9187a-a6e7-4766-968b-2b33411631cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to