"I agree it shouldn't be done in general, but I'm interested to see how
you would have solved my initial, more complicated problem."

Thanks for providing the actual example of what you are trying to do --
this helps us understand more.

I'd probably start by trying to do something with the 'script' module and
get it to the point where it's not interactive, and go from there.




On Thu, May 22, 2014 at 8:41 AM, Michael Peters
<[email protected]>wrote:

> On Wed, May 21, 2014 at 6:21 PM, Michael DeHaan <[email protected]>
> wrote:
> >
> > Don't do this :)
> >
> > Use Ansible and if need be, configure jumphosts, or whatever, but Ansible
> > shouldn't ever *NEED* to call ssh.
>
> I agree it shouldn't be done in general, but I'm interested to see how
> you would have solved my initial, more complicated problem. I just
> simplified to the smallest thing that had the same symptoms for my
> email.
> What I was trying to do was run a backup on one server (that may or
> may not be managed by ansible) but stream that backup to the ansible
> managed server and run some other tasks on it. I think the original
> command was something like this:
>
>     innobackupex --stream=tar ./ | pigz | ssh user@ansible_host "cat -
> > /data/backups/backup.tar"
>
> So I don't actually want the backup stored on the delegate server, but
> compressed and streamed to the target server that ansible is
> controlling.
>
> I thought about using netcat, but that seemed more involved with
> having to control it on both ends.
> Any other thoughts on how to tackle this?
>
> > Ansible already has lots of wrappers for that.
>
> Even though I didn't want to have to write the backup to disk on the
> delegate server, I did try to use copy + delegate_to, but now that I
> look back, that wasn't going to work.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAJQqANfVqhi%3DTEwaXRj%2B10yZYXM8_d6igOgYaOKVnjnjSCV5YA%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgw0n_1%2Be21rX_CRehHicF%2B6qkDtdu8uc2q8x7XkFq_E7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to