mirror of https://github.com/trailofbits/algo
parent
8b0fe4d8f3
commit
d5545b974c
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Generate the SSH private key
|
||||||
|
local_action: shell echo -e 'n' | ssh-keygen -b 2048 -C {{ SSH_keys.comment }} -t rsa -f {{ SSH_keys.private }} -q -N ""
|
||||||
|
args:
|
||||||
|
creates: configs/algo.pem
|
||||||
|
|
||||||
|
- name: Generate the SSH public key
|
||||||
|
local_action: shell echo `ssh-keygen -y -f configs/algo.pem` {{ SSH_keys.comment }} > {{ SSH_keys.public }}
|
||||||
|
args:
|
||||||
|
creates: configs/algo.pem.pub
|
||||||
|
|
||||||
|
- name: Change mode for the SSH private key
|
||||||
|
local_action: file path=configs/algo.pem mode=0600
|
Loading…
Reference in New Issue