Hello I am trying to backup config on a juniper router without success
and getting an error message 

ansible@ansible-new:/etc/ansible$ ansible-playbook -i  hosts 
backup_config-junos-facts.yml --user=ansible --extra-vars 
PLAY [collect default set of facts] 
TASK [Gathering Facts] 
ok: []
TASK [collect default sets of facts and configuration] 
An exception occurred during task execution. To see the full traceback, use 
-vvv. The error was: TypeError: argument must be string or read-only 
character buffer, not None
fatal: []: FAILED! => {"changed": false, "module_stderr": 
"Traceback (most recent call last):\n  File 
\"/tmp/ansible_vRkO_Y/ansible_module_junos_facts.py\", line 346, in 
<module>\n    main()\n  File 
\"/tmp/ansible_vRkO_Y/ansible_module_junos_facts.py\", line 327, in 
main\n    inst.populate()\n  File 
\"/tmp/ansible_vRkO_Y/ansible_module_junos_facts.py\", line 130, in 
populate\n    reply = self.rpc('get-software-information')\n  File 
\"/tmp/ansible_vRkO_Y/ansible_module_junos_facts.py\", line 118, in 
rpc\n    return send_request(self.module, Element(rpc))\n  File 
line 42, in send_request\n  File 
line 66, in exec_command\n  File \"/usr/lib/python2.7/socket.py\", line 
228, in meth\n    return getattr(self._sock,name)(*args)\nTypeError: 
argument must be string or read-only character buffer, not None\n", 
"module_stdout": "", "msg": "MODULE FAILURE", "rc": 0}
 [WARNING]: Could not create retry file '/etc/ansible/backup_config-junos-
facts.retry'.         [Errno 13] Permission denied: u'/etc/ansible

This is the code 
- name: collect default set of facts
  connection: local
  - name: collect default sets of facts and configuration
      gather_subset: config

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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to