# ValueError: No closing quotation

**URL:** <https://forum.ansible.com/t/valueerror-no-closing-quotation/36631>\
**Category:** Ansible Project\
**Created:** [May 16, 2022, 8:17am UTC](https://forum.ansible.com/t/valueerror-no-closing-quotation/36631 "2022-05-16T08:17:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wael\_ghazouani](https://avatars.discourse-cdn.com/v4/letter/w/7feea3/32.png) [@wael\_ghazouani](https://forum.ansible.com/u/wael_ghazouani)\
**Post date:** [May 16, 2022, 8:17am UTC](https://forum.ansible.com/t/valueerror-no-closing-quotation/36631/1 "2022-05-16T08:17:32Z")

</div>

The full traceback is:  
Traceback (most recent call last):  
File “/venv\_ansible/lib/python2.7/site-packages/ansible/executor/task\_executor.py”, line 158, in run  
res = self.\_execute()  
File “/venv\_ansible/lib/python2.7/site-packages/ansible/executor/task\_executor.py”, line 593, in \_execute  
result = self.\_handler.run(task\_vars=variables)  
File “/venv\_ansible/lib/python2.7/site-packages/ansible/plugins/action/gather\_facts.py”, line 99, in run  
res = self.\_execute\_module(module\_name=fact\_module, module\_args=mod\_args, task\_vars=task\_vars, wrap\_async=False)  
File “/venv\_ansible/lib/python2.7/site-packages/ansible/plugins/action/ **init**.py”, line 970, in \_execute\_module  
self.\_make\_tmp\_path()  
File “/venv\_ansible/lib/python2.7/site-packages/ansible/plugins/action/ **init**.py”, line 390, in \_make\_tmp\_path  
tmpdir = self.\_remote\_expand\_user(self.get\_shell\_option(‘remote\_tmp’, default=‘~/.ansible/tmp’), sudoable=False)  
File “/venv\_ansible/lib/python2.7/site-packages/ansible/plugins/action/ **init**.py”, line 853, in \_remote\_expand\_user  
data = self.\_low\_level\_execute\_command(cmd, sudoable=False)  
File “/venv\_ansible/lib/python2.7/site-packages/ansible/plugins/action/ **init**.py”, line 1265, in \_low\_level\_execute\_command  
rc, stdout, stderr = self.\_connection.exec\_command(cmd, in\_data=in\_data, sudoable=sudoable)  
File “/venv\_ansible/lib/python2.7/site-packages/ansible/plugins/connection/ssh.py”, line 1277, in exec\_command  
cmd = self.\_build\_command(ssh\_executable, ‘ssh’, \*args)  
File “/venv\_ansible/lib/python2.7/site-packages/ansible/plugins/connection/ssh.py”, line 715, in \_build\_command  
b\_args = [to\_bytes(a, errors=‘surrogate\_or\_strict’) for a in self.\_split\_ssh\_args(attr)]  
File “/venv\_ansible/lib/python2.7/site-packages/ansible/plugins/connection/ **init**.py”, line 119, in \_split\_ssh\_args  
return [to\_text(x.strip()) for x in shlex.split(to\_bytes(argstring)) if x.strip()]  
File “/usr/lib64/python2.7/shlex.py”, line 279, in split  
return list(lex)  
File “/usr/lib64/python2.7/shlex.py”, line 269, in next  
token = self.get\_token()  
File “/usr/lib64/python2.7/shlex.py”, line 96, in get\_token  
raw = self.read\_token()  
File “/usr/lib64/python2.7/shlex.py”, line 172, in read\_token  
raise ValueError, “No closing quotation”  
ValueError: No closing quotation  
fatal: [opxlrdn0036]: FAILED! =\> {  
“msg”: “Unexpected failure during module execution.”,  
“stdout”: “”  
}

yaml file
