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 <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2024-12-22 20:30:55 +01:00
parent da9662533a
commit 4960068555
Signed by: mfocko
SSH key fingerprint: SHA256:icm0fIOSJUpy5+1x23sfr+hLtF9UhY8VpMC7H4WFJP8

View file

@ -16,5 +16,5 @@
- name: Set key/pair facts - name: Set key/pair facts
ansible.builtin.set_fact: ansible.builtin.set_fact:
wg_private_key: _generated_private_key.stdout wg_private_key: "{{ _generated_private_key.stdout }}"
wg_public_key: _derived_public_key.stdout wg_public_key: "{{ _derived_public_key.stdout }}"