# interrupting

**URL:** <https://forum.ansible.com/t/interrupting/13033>\
**Category:** Ansible Project\
**Created:** [June 28, 2013, 8:22am UTC](https://forum.ansible.com/t/interrupting/13033 "2013-06-28T08:22:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nandor\_Sivok](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@Nandor\_Sivok](https://forum.ansible.com/u/Nandor_Sivok)\
**Post date:** [June 28, 2013, 8:22am UTC](https://forum.ansible.com/t/interrupting/13033/1 "2013-06-28T08:22:39Z")

</div>

Hey Michael, Guys,

Here is a thing which concerns me:

[root@cobbler.bfc ~]# ansible [app01.bfc.kinja.com](http://app01.bfc.kinja.com) -m shell -a “ping [index.hu](http://index.hu)”  
^C32  
ERROR: interrupted  
[root@cobbler.bfc ~]# ansible [app01.bfc.kinja.com](http://app01.bfc.kinja.com) -m shell -a “ps -ef | grep ping | grep -v grep”  
[app01.bfc.kinja.com](http://app01.bfc.kinja.com) | success | rc=0 \>\>  
root 29620 29619 0 03:59 ? 00:00:00 ping [index.hu](http://index.hu)

This looks harmless, but then you can do something like this:  
[root@cobbler.bfc ~]# ansible all -m shell -a “rm -rf /obscuredirectory/error .\*”

^C32  
ERROR: interrupted

I know ssh host “command” works the same way, but is there a chance of real interrupting will be be implemented into ansible in the future?

Thanks,  
nandi

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [June 28, 2013, 12:40pm UTC](https://forum.ansible.com/t/interrupting/13033/2 "2013-06-28T12:40:35Z")

</div>

Control-C killing the remote jobs?

This might be a bit tricky, though I could kind of see a module that looked through the process table to kill ansible modules.

At that point though, you’d probably already have deleted some useful things, so I am uncertain as to how valuable that would be.
