From 496006855550c720ead4f03c230239ed85831cfe Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sun, 22 Dec 2024 20:30:55 +0100 Subject: [PATCH] fix(wg): correctly template facts When setting facts to outputs of some other tasks or variables, they need to be correctly templated and quoted, otherwise they're taken as is, i.e., as text. Signed-off-by: Matej Focko --- roles/wg/tasks/generate_keypair.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/wg/tasks/generate_keypair.yml b/roles/wg/tasks/generate_keypair.yml index 8103f16..ef409f2 100644 --- a/roles/wg/tasks/generate_keypair.yml +++ b/roles/wg/tasks/generate_keypair.yml @@ -16,5 +16,5 @@ - name: Set key/pair facts ansible.builtin.set_fact: - wg_private_key: _generated_private_key.stdout - wg_public_key: _derived_public_key.stdout + wg_private_key: "{{ _generated_private_key.stdout }}" + wg_public_key: "{{ _derived_public_key.stdout }}"