From 724f7644aa34ab0b0ec31470ed7e09528ed514da Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Wed, 16 Mar 2022 13:14:59 +0100 Subject: [PATCH] fixed state in Ansible ssh-keys task (again) --- tasks/ssh-keys.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/ssh-keys.yml b/tasks/ssh-keys.yml index fbfd6fc..91b55f4 100644 --- a/tasks/ssh-keys.yml +++ b/tasks/ssh-keys.yml @@ -8,7 +8,7 @@ ansible.builtin.file: path: ~/.ssh/authorized_keys mode: 0600 - state: file + state: touch - name: Check if the "bryanpedini@bryanbox.home.bjphoster.cloud" key is present ansible.builtin.lineinfile: path: ~/.ssh/authorized_keys