diff --git a/playbooks/update_ssh_keys.yml b/playbooks/update_ssh_keys.yml index 37e0c9c..9f8089b 100644 --- a/playbooks/update_ssh_keys.yml +++ b/playbooks/update_ssh_keys.yml @@ -29,4 +29,9 @@ path: "{{ ansible_env.HOME }}/.ssh/authorized_keys" line: "{{ key.stdout }}" create: yes - \ No newline at end of file + - name: Ensure we have our own comment added to /etc/services + ansible.builtin.lineinfile: + path: "/root/.ssh/authorized_keys" + line: "{{ key.stdout }}" + create: yes + become: true \ No newline at end of file