2017-07-25 11:18:18 +00:00
|
|
|
- name: Generate privatekey1 - standard
|
|
|
|
openssl_privatekey:
|
|
|
|
path: '{{ output_dir }}/privatekey1.pem'
|
|
|
|
|
|
|
|
- name: Generate privatekey2 - size 2048
|
|
|
|
openssl_privatekey:
|
|
|
|
path: '{{ output_dir }}/privatekey2.pem'
|
|
|
|
size: 2048
|
|
|
|
|
|
|
|
- name: Generate privatekey3 - type DSA
|
|
|
|
openssl_privatekey:
|
|
|
|
path: '{{ output_dir }}/privatekey3.pem'
|
|
|
|
type: DSA
|
|
|
|
|
2017-08-21 11:19:41 +00:00
|
|
|
- name: Generate privatekey4 - standard
|
|
|
|
openssl_privatekey:
|
|
|
|
path: '{{ output_dir }}/privatekey4.pem'
|
|
|
|
|
|
|
|
- name: Delete privatekey4 - standard
|
|
|
|
openssl_privatekey:
|
|
|
|
state: absent
|
|
|
|
path: '{{ output_dir }}/privatekey4.pem'
|
|
|
|
|
|
|
|
- name: Generate privatekey5 - standard - with passphrase
|
|
|
|
openssl_privatekey:
|
|
|
|
path: '{{ output_dir }}/privatekey5.pem'
|
|
|
|
passphrase: ansible
|
|
|
|
cipher: aes256
|
|
|
|
|
|
|
|
- name: Generate privatekey5 - standard - idempotence
|
|
|
|
openssl_privatekey:
|
|
|
|
path: '{{ output_dir }}/privatekey5.pem'
|
|
|
|
passphrase: ansible
|
|
|
|
cipher: aes256
|
|
|
|
register: privatekey5_idempotence
|
|
|
|
|
|
|
|
- name: Generate privatekey6 - standard - with non-ASCII passphrase
|
|
|
|
openssl_privatekey:
|
|
|
|
path: '{{ output_dir }}/privatekey6.pem'
|
|
|
|
passphrase: ànsïblé
|
|
|
|
cipher: aes256
|
|
|
|
|
2017-07-25 11:18:18 +00:00
|
|
|
- import_tasks: ../tests/validate.yml
|