diff --git a/roles/nginx_cluster/defaults/main.yml b/roles/nginx_cluster/defaults/main.yml index e9852db..9c88a72 100644 --- a/roles/nginx_cluster/defaults/main.yml +++ b/roles/nginx_cluster/defaults/main.yml @@ -27,6 +27,7 @@ nginx_cluster_additional_packages: nginx_cluser_lsyncd_mode: "rsyncssh" nginx_cluser_lsyncd_delay: "0" +nginx_cluser_lsyncd_rsync_checksum: "true" nginx_cluser_lsyncd_rsync_times: "true" nginx_cluser_lsyncd_rsync_archive: "true" nginx_cluser_lsyncd_rsync_compress: "true" diff --git a/roles/nginx_cluster/templates/lsynd.conf.j2 b/roles/nginx_cluster/templates/lsynd.conf.j2 index b358f81..b52e71e 100644 --- a/roles/nginx_cluster/templates/lsynd.conf.j2 +++ b/roles/nginx_cluster/templates/lsynd.conf.j2 @@ -18,6 +18,7 @@ do targetdir = "{{ nginx_cluser_sync_site_dir }}", delay = {{ nginx_cluser_lsyncd_delay }}, rsync = { + checksum = {{ nginx_cluser_lsyncd_rsync_checksum }}, times = {{ nginx_cluser_lsyncd_rsync_times }}, archive = {{ nginx_cluser_lsyncd_rsync_archive }}, compress = {{ nginx_cluser_lsyncd_rsync_compress }}, @@ -38,6 +39,7 @@ do targetdir = "{{ nginx_cluser_sync_config_dir }}", delay = {{ nginx_cluser_lsyncd_delay }}, rsync = { + checksum = {{ nginx_cluser_lsyncd_rsync_checksum }}, times = {{ nginx_cluser_lsyncd_rsync_times }}, archive = {{ nginx_cluser_lsyncd_rsync_archive }}, compress = {{ nginx_cluser_lsyncd_rsync_compress }}, @@ -58,6 +60,7 @@ do targetdir = "{{ nginx_cluser_sync_php_config_dir }}", delay = {{ nginx_cluser_lsyncd_delay }}, rsync = { + checksum = {{ nginx_cluser_lsyncd_rsync_checksum }}, times = {{ nginx_cluser_lsyncd_rsync_times }}, archive = {{ nginx_cluser_lsyncd_rsync_archive }}, compress = {{ nginx_cluser_lsyncd_rsync_compress }},