From d9b3ddf799fc347d91f8138abb8a2c4b721c6bfe Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 18 Oct 2020 10:14:35 +0300 Subject: holywood2: install ssh config for root --- ansible/roles/holywood2/files/ssh-config | 9 +++++++++ ansible/roles/holywood2/tasks/main.yml | 16 ++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 ansible/roles/holywood2/files/ssh-config (limited to 'ansible/roles/holywood2') diff --git a/ansible/roles/holywood2/files/ssh-config b/ansible/roles/holywood2/files/ssh-config new file mode 100644 index 0000000..25d73af --- /dev/null +++ b/ansible/roles/holywood2/files/ssh-config @@ -0,0 +1,9 @@ +host * +stricthostkeychecking=accept-new +passwordauthentication=no +identityfile=/root/.ssh/id_rsa +identitiesonly=yes + +host nalanda +hostname nalanda.liw.fi +proxyjump exolobe2 diff --git a/ansible/roles/holywood2/tasks/main.yml b/ansible/roles/holywood2/tasks/main.yml index 0562926..164cc67 100644 --- a/ansible/roles/holywood2/tasks/main.yml +++ b/ansible/roles/holywood2/tasks/main.yml @@ -1,3 +1,19 @@ +- name: install root SSH config into /home/root/.ssh + copy: + src: ssh-config + dest: /home/root/.ssh/config + +- name: install root SSH authorized keys into /home/root/.ssh + copy: + src: ssh-config + dest: /home/root/.ssh/config + +- name: symlink /root/.ssh to /home/root/.ssh + file: + state: link + src: /home/root/.ssh + path: /root/.ssh + - name: create soile group group: name: soile -- cgit v1.2.1