ansible/playbooks/00_distribute_ssh_keys.yml

8 lines
228 B
YAML
Raw Normal View History

2022-12-14 02:23:34 +01:00
- hosts: odroid_cluster
tasks:
- name: Set authorized key taken from file
ansible.posix.authorized_key:
user: jd
state: present
key: "{{ lookup('file', '/home/jd/.ssh/id_rsa.pub') }}"