I have a remote file (two actually) that I wish to concat to another remote file. I want to use the command module in Ansible rather than the shell module. Therefore I can't use >>
(or |
or &&
etc).
Question is twofold: is there a module (or combination) that will do this for me?
And, if not, is there a bash command which will do this for me?
I know from this question that sed -i "$ a some text" somefile.txt
will append a line of text.
A hypothetical command to illustrate:
append -in /my/remote/file -in /my/remote/file2 -out /my/remote/dst