# ansible adhoc command did not return

**URL:** <https://forum.ansible.com/t/ansible-adhoc-command-did-not-return/27433>\
**Category:** Ansible Project\
**Created:** [May 3, 2018, 6:15am UTC](https://forum.ansible.com/t/ansible-adhoc-command-did-not-return/27433 "2018-05-03T06:15:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorg\_Kastning](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Post date:** [May 3, 2018, 6:15am UTC](https://forum.ansible.com/t/ansible-adhoc-command-did-not-return/27433/1 "2018-05-03T06:15:30Z")

</div>

Hello folks,

This morning I run the following ansible adhoc command to update some of my hosts using ansible 2.5.2:

`  
ansible host1,host2,host3 -m yum -a “name=‘\*’ state=‘latest’”  
host2 | SUCCESS =\> {  
“changed”: false,  
“msg”: “”,  
“rc”: 0,  
“results”: [  
“Nothing to do here, all packages are up to date”  
]  
}

^CProcess WorkerProcess-3:  
Traceback (most recent call last):  
File “/usr/lib64/python2.7/multiprocessing/process.py”, line 258, in \_bootstrap  
Process WorkerProcess-1:  
Traceback (most recent call last):  
File “/usr/lib64/python2.7/multiprocessing/process.py”, line 258, in \_bootstrap  
[ERROR]: User interrupted execution  
`

host1 and host3 were updated as well but the ansible adhoc command did not return. I have checked both hosts for any running yum or python process but both hosts were not running any of these and they were up-to-date. So I interrupted the ansible process on my controller machine.

Is this a known issue in version 2.5.2? How could this happen?

Could someone give some advise what to do to gather debug information when this happens the next time?

Regards,  
Joerg

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [May 3, 2018, 4:35pm UTC](https://forum.ansible.com/t/ansible-adhoc-command-did-not-return/27433/2 "2018-05-03T16:35:24Z")

</div>

[https://docs.ansible.com/ansible/latest/dev\_guide/developing\_modules\_general.html#debugging-remote](https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html#debugging-remote)
