Files
homecloud/bootstrap/playbook.yml
2020-07-15 20:07:56 +02:00

8 lines
224 B
YAML

- hosts: all
tasks:
- name: Set authorized key for root copying it from current user
authorized_key:
user: root
state: present
key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/id_rsa.pub') }}"