fix ssh key deployment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-10-01 08:45:33 +02:00
parent b7a46cb96e
commit aab83c4ce3
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

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