mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-05-04 16:09:50 +02:00
This commit is contained in:
@@ -0,0 +1 @@
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJSABeQ3x7nM3HBil1LpGYLrdz5NbXVl6l6dNMr0lnwZ jd@ryzen
|
||||
@@ -18,8 +18,8 @@
|
||||
when: inventory_hostname != 'nas.home.lan'
|
||||
- name: Upload key
|
||||
ansible.builtin.copy:
|
||||
src: id_rsa.pub
|
||||
dest: /home/jd/.ssh/id_rsa.pub
|
||||
src: id_ed25519_homelab.pub
|
||||
dest: /home/jd/.ssh/id_ed25519_homelab.pub
|
||||
mode: '0600'
|
||||
owner: jd
|
||||
group: jd
|
||||
@@ -28,4 +28,4 @@
|
||||
ansible.posix.authorized_key:
|
||||
user: jd
|
||||
state: present
|
||||
key: "{{ lookup('file', '/home/jd/.ssh/id_rsa.pub') }}"
|
||||
key: "{{ lookup('file', '/home/jd/.ssh/id_ed25519_homelab.pub') }}"
|
||||
|
||||
Reference in New Issue
Block a user