This commit is contained in:
2025-04-16 09:32:40 +02:00
4 changed files with 58 additions and 1984 deletions

19
roles/ssh_keys/tasks/main.yml Executable file
View File

@ -0,0 +1,19 @@
- name: SSH keys deploy
become: "{{ false if inventory_hostname == 'nas.home.lan' else true }}"
block:
- name: Upload key
ansible.builtin.copy:
src: id_rsa
dest: /home/jd/.ssh/id_rsa
mode: '0600'
owner: jd
group: jd
when: inventory_hostname != 'nas.home.lan'
- name: Upload key
ansible.builtin.copy:
src: id_rsa
dest: /home/jd/.ssh/id_rsa.pub
mode: '0600'
owner: jd
group: jd
when: inventory_hostname != 'nas.home.lan'