2018-10-24 10:51:45 +00:00
|
|
|
- name: Generate privatekey1 - standard
|
|
|
|
connection: local
|
|
|
|
openssh_keypair:
|
|
|
|
path: '{{ output_dir }}/privatekey1'
|
|
|
|
|
|
|
|
- name: Generate privatekey2 - size 2048
|
|
|
|
openssh_keypair:
|
|
|
|
path: '{{ output_dir }}/privatekey2'
|
|
|
|
size: 2048
|
|
|
|
|
|
|
|
- name: Generate privatekey3 - type dsa
|
|
|
|
openssh_keypair:
|
|
|
|
path: '{{ output_dir }}/privatekey3'
|
|
|
|
type: dsa
|
|
|
|
|
|
|
|
- name: Generate privatekey4 - standard
|
|
|
|
openssh_keypair:
|
|
|
|
path: '{{ output_dir }}/privatekey4'
|
|
|
|
|
|
|
|
- name: Delete privatekey4 - standard
|
|
|
|
openssh_keypair:
|
|
|
|
state: absent
|
|
|
|
path: '{{ output_dir }}/privatekey4'
|
|
|
|
|
2019-03-05 16:07:43 +00:00
|
|
|
- name: Generate privatekey5 - standard
|
|
|
|
openssh_keypair:
|
|
|
|
path: '{{ output_dir }}/privatekey5'
|
|
|
|
register: publickey_gen
|
|
|
|
|
2018-10-24 10:51:45 +00:00
|
|
|
- import_tasks: ../tests/validate.yml
|