diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-10-18 10:14:35 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-10-18 10:14:35 +0300 |
commit | d9b3ddf799fc347d91f8138abb8a2c4b721c6bfe (patch) | |
tree | 6631e1147465cbc590d66c23cf79f33df3dcc2a5 /ansible/roles/holywood2 | |
parent | ebd067f07ed438bc23ceec95e45e1657725ba9c9 (diff) | |
download | ansibleness-d9b3ddf799fc347d91f8138abb8a2c4b721c6bfe.tar.gz |
holywood2: install ssh config for root
Diffstat (limited to 'ansible/roles/holywood2')
-rw-r--r-- | ansible/roles/holywood2/files/ssh-config | 9 | ||||
-rw-r--r-- | ansible/roles/holywood2/tasks/main.yml | 16 |
2 files changed, 25 insertions, 0 deletions
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 |