Added ssh public keys
This commit is contained in:
1 parent
b63b02ed02
commit
6a4c65e9d3
12 files changed
+72
-13
No files matched your search
@@ -0,0 +1,2 @@
|
||||
[defaults]
|
||||
inventory = hosts
|
||||
@@ -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"
|
||||
@@ -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') }}"
|
||||
Reference in new issue
Block a user