fix ssh key deployment
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2020-10-01 08:45:33 +02:00
parent b7a46cb96e
commit aab83c4ce3
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
1 changed files with 2 additions and 1 deletions

View File

@ -31,12 +31,13 @@
when: __droneci_autoscaler_sshkey | length > 0
no_log: True
- name: Generate SSH key pair if missing
- name: Generate SSH key pair
openssh_keypair:
path: "{{ __droneci_autoscaler_workdir }}/ssh_key"
type: ed25519
force: False
state: present
when: not __droneci_autoscaler_sshkey | length > 0
- name: Write userdata
template: