fix ssh key deployment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b7a46cb96e
commit
aab83c4ce3
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user