From 73951559fc4933e8d1aa8d88f389dc1ca239ec3c Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Thu, 28 Jul 2022 09:31:49 +1000 Subject: [PATCH] upload-git-mirror: no_log around key writing Add no_log here as a fallback against ever leaving the output in the logs. Change-Id: Ia3d518d915705b40e0e12e25e0a0787a8cf614d7 --- roles/upload-git-mirror/tasks/main.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/upload-git-mirror/tasks/main.yaml b/roles/upload-git-mirror/tasks/main.yaml index ad7e39cab..73661d622 100644 --- a/roles/upload-git-mirror/tasks/main.yaml +++ b/roles/upload-git-mirror/tasks/main.yaml @@ -10,6 +10,7 @@ content: "{{ git_mirror_credentials.ssh_key }}" dest: "{{ ssh_private_key_tmp.path }}" mode: 0600 + no_log: true # If the markers in an id_rsa don't end with a newline some # versions of ssh won't read the key.