Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17852

Do something like this with ansible?

$
0
0

About 5 minutes ago I figured out how to redirect the output of a remotely executed script into a file so I can fix my rsnapshot backups.

I did something like this

 /usr/bin/ssh root@oflameo.com 'bash -s' < /usr/local/bin/rsnapshot-utils/dump_dpkg.sh > dpkg_selections 
  1. Is there anywhere I should have read about this so I wouldn't have had to do so much experimentation to figure this out?

  2. Is there anyway I can mimic the effects of this redirection strategy in ansible?

submitted by Oflameo
[link][1 comment]

Viewing all articles
Browse latest Browse all 17852