{%- else %} | {%- else %} | ||||
- name: ssh-keygen -t {{ keyType }} -N '' -f {{ keyFile }} | - name: ssh-keygen -t {{ keyType }} -N '' -f {{ keyFile }} | ||||
{%- endif %} | {%- endif %} | ||||
- creates: /etc/ssh/ssh_host_{{ keyType }}_key | |||||
- creates: {{ keyFile }} | |||||
- user: root | - user: root | ||||
- watch_in: | - watch_in: | ||||
- service: {{ openssh.service }} | - service: {{ openssh.service }} |