22 lines
500 B
YAML
22 lines
500 B
YAML
- hosts: all
|
|
become: yes
|
|
|
|
vars:
|
|
ssh_files: "{{ playbook_dir }}/../files"
|
|
|
|
tasks:
|
|
- debug:
|
|
var: playbook_dir
|
|
|
|
- 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
|