diff --git a/tasks/setup.yml b/tasks/setup.yml index f8033d5..56f6f8c 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml @@ -25,10 +25,9 @@ - name: Write SSH private key copy: - content: "{{ item }}" + content: "{{ inst.sshkey | default(droneci_autoscaler_sshkey) }}" dest: "{{ __droneci_autoscaler_workdir }}/ssh_key" mode: 0600 - loop: "{{ inst.ssh_key | default(droneci_autoscaler_sshkey) }}" when: __droneci_autoscaler_sshkey no_log: True