-numerous changes to work with Raspbian 10
-redo of some roles, particularly GUI -modifications to support working from a "Raspbian Lite" install
This commit is contained in:
15
deploy_authorized_keys.yml
Normal file
15
deploy_authorized_keys.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
- 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 }}"
|
||||
Reference in New Issue
Block a user