ansible-silo
ansible-silo copied to clipboard
adding rsync to use synchronize ansible module
Hi,
I need to use synchronize module but the rsync program is not installed in the container.
Could you tell me the procedure to install it? I'm trying
$ ansible-silo --shell 'sudo apk add --no-cache rsync'
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
fetch http://dl-4.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
WARNING: This apk-tools is OLD! Some packages might not function properly.
(1/4) Installing libattr (2.4.47-r6)
(2/4) Installing libacl (2.2.52-r3)
(3/4) Installing popt (1.16-r6)
(4/4) Installing rsync (3.1.3-r0)
Executing busybox-1.26.2-r5.trigger
OK: 129 MiB in 50 packages
But
$ ansible-silo --shell 'which rsync'
Does not show anything.
Thank you
Juan
Thanks Juan,
we recently came across the same problem. I'm currently testing Silo 3.0 which includes rsync. The public release should happen within a week.
Adding it on top of Silo, as you tried, is not possible. When the container exits, the modifications are lost. The only way is to add it to the Dockerfile and re-build the image.
Cheers, Daniel
Tank you very much, I will wait for the next version.
Sorry, it's taking a bit longer. :-/