Added ssh public keys

This commit is contained in:
feedc0de committed 2020-07-15 20:07:56 +02:00
1 parent b63b02ed02
commit 6a4c65e9d3
12 files changed
+72 -13

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
[defaults]
inventory = hosts
+14
View File
@@ -0,0 +1,14 @@
all:
hosts:
homecloud00:
homecloud01:
homecloud02:
homecloud03:
homecloud04:
homecloud05:
homecloud06:
homecloud07:
vars:
ansible_user: root
ansible_password: odroid
ansible_ssh_common_args: "-o StrictHostKeyChecking=no"
+7
View File
@@ -0,0 +1,7 @@
- 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') }}"