This commit is contained in:
parent
3439ae090c
commit
1538f7b271
|
@ -25,10 +25,10 @@
|
||||||
|
|
||||||
- name: Write SSH private key
|
- name: Write SSH private key
|
||||||
copy:
|
copy:
|
||||||
content: "{{ inst.sshkey | default(droneci_autoscaler_sshkey) }}"
|
content: "{{ __droneci_autoscaler_sshkey }}"
|
||||||
dest: "{{ __droneci_autoscaler_workdir }}/ssh_key"
|
dest: "{{ __droneci_autoscaler_workdir }}/ssh_key"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
when: __droneci_autoscaler_sshkey
|
when: __droneci_autoscaler_sshkey | bool
|
||||||
no_log: True
|
no_log: True
|
||||||
|
|
||||||
- name: Generate SSH key pair if missing
|
- name: Generate SSH key pair if missing
|
||||||
|
|
|
@ -69,7 +69,6 @@ services:
|
||||||
{% if droneci_autoscaler_memory_reservation is defined %}
|
{% if droneci_autoscaler_memory_reservation is defined %}
|
||||||
mem_reservation: {{ droneci_autoscaler_memory_reservation }}
|
mem_reservation: {{ droneci_autoscaler_memory_reservation }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if droneci_autoscaler_networks | default([]) | length > 0 %}
|
|
||||||
{% if droneci_autoscaler_volumes | default([]) | rejectattr("bind") | list | length > 0 %}
|
{% if droneci_autoscaler_volumes | default([]) | rejectattr("bind") | list | length > 0 %}
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -77,6 +76,8 @@ volumes:
|
||||||
{{ volume.name }}:
|
{{ volume.name }}:
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if droneci_autoscaler_networks | default([]) | length > 0 %}
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
{% for network in droneci_autoscaler_networks %}
|
{% for network in droneci_autoscaler_networks %}
|
||||||
{{ network.name }}:
|
{{ network.name }}:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user