chore: remove -i attr

This commit is contained in:
2024-02-25 20:27:42 +00:00
parent c767dddbe3
commit 32be2f858d

View File

@@ -1,20 +1,10 @@
---
- name: Delete i attr in authorized_keys file
file:
path: "/root/.ssh/authorized_keys"
attr: '-i'
- name: Write ssh keys
template:
src: "authorized_keys.j2"
dest: "/root/.ssh/authorized_keys"
mode: 0600
- name: Setup i attr in authorized_keys file
file:
path: "/root/.ssh/authorized_keys"
attr: i
- name: Authentication method public key only
lineinfile:
path: /etc/ssh/sshd_config