junos error

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 \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