mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-07 15:43:54 +02:00
Fix hardcoded names
This commit is contained in:
parent
6facb6cb4f
commit
4de4229e82
2 changed files with 5 additions and 5 deletions
|
@ -3,15 +3,15 @@
|
||||||
- name: Generate the SSH private key
|
- 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 ""
|
local_action: shell echo -e 'n' | ssh-keygen -b 2048 -C {{ SSH_keys.comment }} -t rsa -f {{ SSH_keys.private }} -q -N ""
|
||||||
args:
|
args:
|
||||||
creates: configs/algo.pem
|
creates: "{{ SSH_keys.public }}"
|
||||||
|
|
||||||
- name: Generate the SSH public key
|
- name: Generate the SSH public key
|
||||||
local_action: shell echo `ssh-keygen -y -f configs/algo.pem` {{ SSH_keys.comment }} > {{ SSH_keys.public }}
|
local_action: shell echo `ssh-keygen -y -f {{ SSH_keys.private }}` {{ SSH_keys.comment }} > {{ SSH_keys.public }}
|
||||||
args:
|
args:
|
||||||
creates: configs/algo.pem.pub
|
creates: "{{ SSH_keys.public }}"
|
||||||
|
|
||||||
- name: Change mode for the SSH private key
|
- name: Change mode for the SSH private key
|
||||||
local_action: file path=configs/algo.pem mode=0600
|
local_action: file path={{ SSH_keys.private }} mode=0600
|
||||||
|
|
||||||
- name: Ensure the dynamic inventory exists
|
- name: Ensure the dynamic inventory exists
|
||||||
blockinfile:
|
blockinfile:
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
- name: Copy the algo ssh key to the local ssh directory
|
- name: Copy the algo ssh key to the local ssh directory
|
||||||
local_action:
|
local_action:
|
||||||
module: copy
|
module: copy
|
||||||
src: configs/algo.pem
|
src: "{{ SSH_keys.private }}"
|
||||||
dest: ~/.ssh/algo.pem
|
dest: ~/.ssh/algo.pem
|
||||||
mode: '0600'
|
mode: '0600'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue