chore: fix ssh keys write

This commit is contained in:
2023-11-19 13:53:44 +00:00
parent 25942537c5
commit ed04125e0f
2 changed files with 5 additions and 3 deletions

View File

@@ -5,11 +5,10 @@
attr: '-i'
- name: Write ssh keys
copy:
content: "item"
template:
src: "authorized_keys.j2"
dest: "/root/.ssh/authorized_keys"
mode: 0600
with_items: "{{ ssh_protect_root_public_keys }}"
- name: Setup i attr in authorized_keys file
file:

View File

@@ -0,0 +1,3 @@
{% for key in ssh_protect_root_public_keys %}
{{key}}
{% endfor %}