What are the pros and cons to using Ansible Synchronize vs Copy modules. As far as I can tell synchronize has all the functionality that copy does but may be much faster so I'm considering changing everything to use synchronize. The only downside of synchronize is that rsync is required, which seems fairly ubiquitous in the Linux environment.
相关问题
- Access ansible.cfg variable in task
- Unable to get “exclude” option working with unarch
- Ansible: find file and loop over paths
- Generating tuples variables in ansible templates
- Ansible: setting user on dynamic ec2
相关文章
- Ansible create postgresql user with access to all
- Difference between shell and command in ansible
- How to make Ansible run one certain task only on o
- clone a specific branch from git through ansible p
- Check if a list contains an item in Ansible
- Defining host as variable in Ansible hosts file
- ansible/jinja2 get unique subelements
- Custom credentials in Ansible Tower with Custom Py
Using ansible 2.4.2.0, this works flawlessly. I should probably not be using ansible from the CentOS repos. Too far behind the curve, no offense to CentOS.
The differences are pretty similar to traditional
rsync
vsscp
. Rsync has more features and is often faster, however it's a little bit trickier to setup and has more knobs to turn.Additionally, https://docs.ansible.com/ansible/copy_module.html states:
As of latest Ansible (v2.8),
synchronize
is still in “preview” status:I would use
copy
when I don’t need the performance and functionality ofsynchronize
.