From d6beb3b4fa50f05eceb9422b22041945fec74571 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 13 Nov 2024 18:35:47 +0200 Subject: [PATCH] Trim traefik_dashboard_basicauth_file_contents when loading it from a file to remove trailing newline --- tasks/install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/install.yml b/tasks/install.yml index d653302..49d7f56 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -39,7 +39,7 @@ - name: Load basic auth file contents ansible.builtin.set_fact: - traefik_dashboard_basicauth_file_contents: "{{ traefik_dashboard_basicauth_file_contents_raw['content'] | b64decode }}" + traefik_dashboard_basicauth_file_contents: "{{ traefik_dashboard_basicauth_file_contents_raw['content'] | b64decode | trim }}" - name: Ensure local temporary basic auth file is removed ansible.builtin.file: