From 8d81bf6450ef2922839fef04eef38a5a19f9859b Mon Sep 17 00:00:00 2001 From: jaydee Date: Thu, 14 Nov 2024 17:44:01 +0100 Subject: [PATCH] bitwarden --- playbooks/update_ssh_keys.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/playbooks/update_ssh_keys.yml b/playbooks/update_ssh_keys.yml index 79c00d5..66c2606 100644 --- a/playbooks/update_ssh_keys.yml +++ b/playbooks/update_ssh_keys.yml @@ -24,6 +24,11 @@ debug: var: key.stdout + - name: Ensure we have our own comment added to /etc/services + ansible.builtin.lineinfile: + path: "cat {{ ansible_env.HOME }}/.ssh/authorized_keys" + line: key.stdout + - name: Print ansible.builtin.debug: msg: "the value of foo.txt is {{ lookup('ansible.builtin.file', '/home/jd/.ssh/id_rsa.pub') }}" \ No newline at end of file