ansible adhoc command did not return

17 views
Skip to first unread message

Jörg Kastning

unread,
May 3, 2018, 2:15:30 AM5/3/18
to Ansible Project
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

Kai Stian Olstad

unread,
May 3, 2018, 12:35:45 PM5/3/18
to ansible...@googlegroups.com
On 03.05.2018 08:15, Jörg Kastning wrote:
> Could someone give some advise what to do to gather debug information
> when
> this happens the next time?

https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html#debugging-remote

--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages