From 2adc886e5c0c72b8c6560050c4edd30ea9fdbb56 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 18 Dec 2023 23:17:41 +0100 Subject: add role for mostdiscussed.com --- roles/ssh/tasks/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 roles/ssh/tasks/main.yml (limited to 'roles/ssh/tasks') diff --git a/roles/ssh/tasks/main.yml b/roles/ssh/tasks/main.yml new file mode 100644 index 0000000..4bd765a --- /dev/null +++ b/roles/ssh/tasks/main.yml @@ -0,0 +1,32 @@ +- name: mkdir ~horus/.ssh + file: + path: /home/horus/.ssh + state: directory + +- name: mkdir ~root/.ssh + file: + path: /root/.ssh + state: directory + +- name: copy ssh config for horus + copy: + src: config + dest: /home/horus/.ssh/config + +- name: copy ssh config for root + copy: + src: config + dest: /root/.ssh/config + +- name: copy git private ssh key for root + copy: + src: git + dest: /root/.ssh/git + mode: 0400 + +- name: copy git private ssh key for horus + copy: + src: git + dest: /home/horus/.ssh/git + mode: 0400 + owner: horus -- cgit v1.2.3