From fd793155632dad2dff87d63a643d0d8e2d03be04 Mon Sep 17 00:00:00 2001 From: jaydee Date: Thu, 14 Nov 2024 17:02:19 +0100 Subject: [PATCH] bitwarden --- playbooks/update_ssh_keys.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 playbooks/update_ssh_keys.yml diff --git a/playbooks/update_ssh_keys.yml b/playbooks/update_ssh_keys.yml new file mode 100644 index 0000000..ce6bf4c --- /dev/null +++ b/playbooks/update_ssh_keys.yml @@ -0,0 +1,20 @@ +- hosts: "{{ hosts }}" + tasks: + + # Deploy SSH Key + # -- + - name: Create a directory if it does not exist + ansible.builtin.file: + path: ~/.ssh/id_rsa + state: directory + mode: '0700' + - name: Download id_rsa + ansible.builtin.get_url: + url: http://192.168.77.106:48000/ssh/id_rsa + dest: ~/.ssh/id_rsa + mode: '0600' + - name: Download id_rsa.pub + ansible.builtin.get_url: + url: http://192.168.77.106:48000/ssh/id_rsa.pub + dest: ~/.ssh/id_rsa.pub + mode: '0600'