Hi all
I have a play like this:
`
Hi all
I have a play like this:
`
I’d perhaps run this with -vvv for starters, and then maybe show the command you are showing to show there aren’t any files?
with_fileglob is running on the ‘master’ not on the target server, so unless they have the same files this won’t work.
you might want to run a shell: find + register a var for use in the fetch
Yep, that’s true!
Hi Brian, Michael
Been reading about “with_fileglob”, and yes, it apparently only works in the localhost or primary node (gotta be PC nowadays! ). But why does it then show me the right files in the remote boxes?? And cherry on top, it reports “ok” for the task. That’s confusing to say the least.
I did try doing the register/debug thing. Could not get it working. There are plenty of examples on this list for instance, but I guess I lack a python foundation…
In any case, I finally resorted to the proven shell & rsync method. I had my files backed up in minutes.
Thanks both for your time.
If you don’t glob any files, the number of files globbed is 0.
As for right files on right boxes, I don’t know what you mean by that.
Hi
Sorry, I meant that it actually sees the files. Those files do actually exist in the target boxes.
So it seems strange or counterintuitive, that it can actually see the files, can ‘stat’ them, but can not get them…
As I said in my previous post, files are now backed up in any case. Now I can overwrite them with templates…
thanks