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