This commit is contained in:
havelight-ee
2023-02-06 15:01:53 +09:00
commit 2b70528618
1022 changed files with 119427 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
---
- hosts: cluster
remote_user: root
tasks:
- name: key add
authorized_key:
user: root
state: present
key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/id_rsa.pub') }}"
manage_dir: False

5
ssh_key/key_test.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/expect -f
spawn ssh-copy-id root@$argv
expect "password:"
send "password\n"
expect eof