Files
dsfin-ansible/deploy_authorized_keys.yml
mpelle426 ed7eabd399 -numerous changes to work with Raspbian 10
-redo of some roles, particularly GUI
-modifications to support working from a "Raspbian Lite" install
2019-07-10 14:24:34 +01:00

16 lines
321 B
YAML

---
- hosts: all
tasks:
- name: make direcotry
file:
path: "/home/pi/.ssh"
state: directory
- name: create empty file
file:
path: "/home/pi/.ssh/authorized_keys"
state: touch
- name: put pubkey
lineinfile:
path: "/home/pi/.ssh/authorized_keys"
line: "{{ pubkey }}"