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 "ansible_sudo_pass=xxxx" PLAY [collect default set of facts] ******************************************** TASK [Gathering Facts] ********************************************************* ok: [10.101.250.41] 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: [10.101.250.41]: 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 \"/tmp/ansible_vRkO_Y/ansible_modlib.zip/ansible/module_utils/netconf.py\", line 42, in send_request\n File \"/tmp/ansible_vRkO_Y/ansible_modlib.zip/ansible/module_utils/connection.py\", 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 /backup_config-junos-facts.retry' This is the code --- - name: collect default set of facts hosts: 10.101.250.41 connection: local tasks: - name: collect default sets of facts and configuration junos_facts: 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 https://groups.google.com/d/msgid/ansible-project/5c14f180-f022-4da8-a266-1ba71ef5f2d8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.