From 32be2f858d2d8f7adb89643bfd975caead61cd13 Mon Sep 17 00:00:00 2001 From: OldTyT Date: Sun, 25 Feb 2024 20:27:42 +0000 Subject: [PATCH] chore: remove -i attr --- tasks/main.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 9c604b3..cc73c4d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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