ansible-for-i icon indicating copy to clipboard operation
ansible-for-i copied to clipboard

module to assist with sending files from one IBMi node to another IBMi node(FTPS, SSH-SCP, SFTP)

Open volmcat opened this issue 4 years ago • 4 comments

Can we get a module to assist with sending files from the IFS on one node to another node? The method used isn't important, but I would imagine since we are already using SSH, SFTP or SCP would be a good option already.

volmcat avatar Jun 24 '20 18:06 volmcat

ansible module sync also supports ibmi platform, ibm_sync can support savf.

changlexc avatar Jun 24 '20 23:06 changlexc

Thanks. Attempting to use the ansible module synchronize now. But its looking for rsync in these locations: "Failed to find required executable rsync in paths: /QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin"

yum installed it in 'QOpenSys/pkgs/bin' on the IBM What is the best way to fix that, would it be recommended to change the install location for rsync? Or tell the module to look in QOpenSys/pkgs/bin for the rsync executable?

volmcat avatar Jul 16 '20 14:07 volmcat

The IBM Open Source documentation specifies that you should add /QOpenSys/pkgs/bin to the PATH variable as that's where yum installs the binaries it installs. It recommends updating your ~/.profile

https://bitbucket.org/ibmi/opensource/src/972b0065901784cb5327d25714fe19caa271a502/docs/yum/#markdown-header-must-know-usage-notes-read-this-after-you-install

Check the Must Know Usage section.

robinsg avatar Jul 16 '20 14:07 robinsg

You can try Glenn's suggestion. But I think the most easy way is to create a softlink to QOpenSys/pkgs/bin/rsync: ln -s /QOpenSys/pkgs/bin/rsync /usr/bin/rsync

pengzengyufish avatar Jul 17 '20 04:07 pengzengyufish