mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-05 22:54:01 +02:00
Check for creation of private key during its generation (#322)
This task was previously checking for the public key even though it is in place to generate the private key. A simple switch to the `creates` arg resolves the issue.
This commit is contained in:
parent
bb55985ab4
commit
9b76282a37
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
- 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: "{{ SSH_keys.public }}"
|
||||
creates: "{{ SSH_keys.private }}"
|
||||
|
||||
- name: Generate the SSH public key
|
||||
local_action: shell echo `ssh-keygen -y -f {{ SSH_keys.private }}` {{ SSH_keys.comment }} > {{ SSH_keys.public }}
|
||||
|
|
Loading…
Add table
Reference in a new issue