From ec9fe67e4a0469ba01616e0c7b6705c74866cfad Mon Sep 17 00:00:00 2001 From: Tyler Hale Date: Wed, 5 Mar 2025 13:23:26 -0700 Subject: [PATCH] Adding checksum flag --- roles/nginx_cluster/defaults/main.yml | 1 + roles/nginx_cluster/templates/lsynd.conf.j2 | 3 +++ 2 files changed, 4 insertions(+) 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 }},