diff --git a/production.yml b/production.yml index fa130ce..102be28 100644 --- a/production.yml +++ b/production.yml @@ -218,6 +218,11 @@ disabled_syslog: machinbox.mateu.be: muse-HP-EliteBook-820-G2.home.arpa: +fedinupesservers: + hosts: + 93b2685c-9087-4e52-a66f-bf44bfc4a13a.pub.instances.scw.cloud: + 20b4f083-4ef3-4a82-b15c-edbc31aa1731.pub.instances.scw.cloud: + unifiservers: hosts: unifi.dmz.mateu.be: diff --git a/roles/system/files/ssh/stefofficiel.id_rsa.pub b/roles/system/files/ssh/stefofficiel.id_rsa.pub new file mode 100644 index 0000000..1ad93af --- /dev/null +++ b/roles/system/files/ssh/stefofficiel.id_rsa.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAaugK6NnC9ZPyl8jRrAurAfaQSAQdBLDV81RNHziaD6 fhc@fhc-MacBookPro diff --git a/roles/system/tasks/sshd.yml b/roles/system/tasks/sshd.yml index a2e3a48..09dfc00 100644 --- a/roles/system/tasks/sshd.yml +++ b/roles/system/tasks/sshd.yml @@ -18,3 +18,11 @@ user: root state: present key: "{{ lookup('file', 'ssh/work.id_rsa.pub') }}" + +- name: ssh keys stef + authorized_key: + user: root + state: present + key: "{{ lookup('file', 'ssh/stefofficiel.id_rsa.pub') }}" + path: "~/.ssh/instance_keys" + when: inventory_hostname in groups['fedinupesservers']