ansible-for-i
ansible-for-i copied to clipboard
module to assist with sending files from one IBMi node to another IBMi node(FTPS, SSH-SCP, SFTP)
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.
ansible module sync also supports ibmi platform, ibm_sync can support savf.
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?
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.
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