interrupting

Hey Michael, Guys,

Here is a thing which concerns me:

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

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.