|
|
|
|
|
|
|
|
{%- set keySizePart = "-b {}".format(keySize) if keySize else "" %} |
|
|
{%- set keySizePart = "-b {}".format(keySize) if keySize else "" %} |
|
|
- name: "rm {{ keyFile }}*; ssh-keygen -t {{ keyType }} {{ keySizePart }} -N '' -f {{ keyFile }}" |
|
|
- name: "rm {{ keyFile }}*; ssh-keygen -t {{ keyType }} {{ keySizePart }} -N '' -f {{ keyFile }}" |
|
|
- unless: "test -s {{ keyFile }}" |
|
|
- unless: "test -s {{ keyFile }}" |
|
|
- user: root |
|
|
|
|
|
|
|
|
- runas: root |
|
|
- require_in: |
|
|
- require_in: |
|
|
- file: sshd_config |
|
|
- file: sshd_config |
|
|
- watch_in: |
|
|
- watch_in: |