From 26b9453a8bde1625800422a0c0b37e6e32e35eb2 Mon Sep 17 00:00:00 2001 From: eneller Date: Sat, 6 Sep 2025 15:27:58 +0200 Subject: [PATCH] fix: jinja2 syntax --- ssh_addKey.yml | 2 +- ssh_updateKey.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ssh_addKey.yml b/ssh_addKey.yml index b7fd7df..8e573dd 100644 --- a/ssh_addKey.yml +++ b/ssh_addKey.yml @@ -17,5 +17,5 @@ user: "{{ ansible_user_id }}" exclusive: false state: present - key: "{{ lookup('file', '{{ ssh_key_path }}') }}" + key: "{{ lookup('file', ssh_key_path) }}" diff --git a/ssh_updateKey.yml b/ssh_updateKey.yml index c7737f3..c6a1656 100644 --- a/ssh_updateKey.yml +++ b/ssh_updateKey.yml @@ -20,7 +20,7 @@ user: "{{ ansible_user_id }}" exclusive: false state: present - key: "{{ lookup('file', '{{ ssh_key_path }}') }}" + key: "{{ lookup('file', ssh_key_path) }}" comment: "{{ (ssh_key_comment | length > 0) | ternary(ssh_key_comment, omit) }}" - name: Update sshd config