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