Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
hide diff when remote_path matches secret path
Browse files Browse the repository at this point in the history
  • Loading branch information
ifalatiksetlog committed Mar 30, 2023
1 parent d94217e commit eb17c90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/deploy_file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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"]

Expand Down

0 comments on commit eb17c90

Please sign in to comment.