The most useful parameter is “archive”, which mirrors the Rsync archive flag, enables recursive, links, perms, times, owner, group flags, and -D. Paths could be Local or Remote according to your needs. Same story for the dest parameter that specifies the path on the destination host that will be synchronized from the source. The “src” parameter is mandatory and specifies the path on the source host that will be synchronized to the destination. The only mandatory parameters are “src” and “dest” parameters. The parameter list is pretty wide but these are the most important options of synchronize module. archive boolean - mirrors the Rsync archive flag, enables recursive, links, perms, times, owner, group flags, and -D.dest string - destination path - absolute or relative.src string - source path - absolute or relative.Rsync must be installed on both the local and remote host.Ĭurrently, there are only a few connection types that support synchronize (ssh, paramiko, local, and docker) because a sync strategy has been determined for those connection types. Rsync is a utility for efficiently transferring and synchronizing files between a computer and a storage drive and across networked computers by comparing the modification times and sizes of files. The full name is, which means that is part of the collection targeting POSIX platforms.Ī wrapper around rsync to make common tasks in your playbooks quick and easy. ![]() Today we’re talking about the Ansible module synchronize. synchronize is a wrapper around rsync to make common tasks in your playbooks quick and easy.I’m Luca Berton and welcome to today’s episode of Ansible Pilot. I’m going to show you a live demo and some simple Ansible code. Donate How to backing up with rsync with Ansible?.How to backing up with rsync with Ansible?.Access the Complete Video Course and Learn Quick Ansible by 200+ Practical Lessons
0 Comments
Leave a Reply. |