Added copy-ssh-key.yaml
This commit is contained in:
1
files/id_ed25519_proxmox.pub
Normal file
1
files/id_ed25519_proxmox.pub
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPcfT2ouxUaCwGBTT5OyR//M/9N5EB2PjXUoPT+ncASf proxmox
|
||||||
1
files/id_ed25519_semaphore.pub
Normal file
1
files/id_ed25519_semaphore.pub
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAZYhHsurKUxGWITSL6WTBqwI7DT9OCvwdK55htUWVKB semaphore
|
||||||
18
playbooks/copy-ssh-key.yaml
Normal file
18
playbooks/copy-ssh-key.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
- hosts: all
|
||||||
|
become: yes
|
||||||
|
|
||||||
|
vars:
|
||||||
|
ssh_files: "{{ playbook_dir }}/../files"
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Install Proxmox Root SSH key
|
||||||
|
authorized_key:
|
||||||
|
user: root
|
||||||
|
key: "{{ lookup('file', ssh_files + '/id_ed25519_proxmox.pub') }}"
|
||||||
|
manage_dir: true
|
||||||
|
|
||||||
|
- name: Install Semaphore Root SSH key
|
||||||
|
authorized_key:
|
||||||
|
user: root
|
||||||
|
key: "{{ lookup('file', ssh_files + '/id_ed25519_semaphore.pub') }}"
|
||||||
|
manage_dir: true
|
||||||
Reference in New Issue
Block a user