From eb17c90ac5560f7fb55148e3258e89a96754d2fc Mon Sep 17 00:00:00 2001 From: Ian Paul Falatik Date: Thu, 30 Mar 2023 15:15:33 +0200 Subject: [PATCH] hide diff when remote_path matches secret path --- tasks/deploy_file.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/deploy_file.yml b/tasks/deploy_file.yml index 6fb56bc..80e99f5 100644 --- a/tasks/deploy_file.yml +++ b/tasks/deploy_file.yml @@ -20,6 +20,7 @@ else docker_secret_file_mode }}" owner: "{{ docker_owner }}" group: "{{ docker_group }}" + diff: "{{ not remote_path | any_regex_matches(regex_secret_remote_paths) }}" when: file_type == 'host_file' or ( file_type == 'file' and not ( potential_host_file.stat.exists is defined and potential_host_file.stat.exists ) ) notify: ["Restart project"] @@ -33,6 +34,7 @@ else docker_secret_file_mode }}" owner: "{{ docker_owner }}" group: "{{ docker_group }}" + diff: "{{ not remote_path | any_regex_matches(regex_secret_remote_paths) }}" when: file_type == 'template' and not ( potential_host_file.stat.exists is defined and potential_host_file.stat.exists ) notify: ["Restart project"]