copy private ssh-key and paste to NAT-Server
This commit is contained in:
parent
f29f47ba64
commit
f6353fc036
|
|
@ -7,6 +7,11 @@
|
||||||
src: /tmp/id_rsa.pub
|
src: /tmp/id_rsa.pub
|
||||||
dest: ~/.ssh/
|
dest: ~/.ssh/
|
||||||
|
|
||||||
|
- name: Copy Private ssh-key and paste to NAT-Server
|
||||||
|
copy:
|
||||||
|
src: /tmp/id_rsa
|
||||||
|
dest: ~/.ssh/
|
||||||
|
|
||||||
- name: Change Permission of the Private ssh-key only to read for the User
|
- name: Change Permission of the Private ssh-key only to read for the User
|
||||||
raw: "chmod 0400 ~/.ssh/id_rsa"
|
raw: "chmod 0400 ~/.ssh/id_rsa"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,3 +6,5 @@
|
||||||
community.crypto.openssh_keypair:
|
community.crypto.openssh_keypair:
|
||||||
path: /tmp/id_rsa
|
path: /tmp/id_rsa
|
||||||
type: rsa
|
type: rsa
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue