mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
29 lines
868 B
YAML
29 lines
868 B
YAML
|
- name: Validate privatekey1 (test)
|
||
|
shell: "openssl rsa -noout -text -in {{ output_dir }}/privatekey1.pem | grep Private | sed 's/Private-Key: (\\(.*\\) bit)/\\1/'"
|
||
|
register: privatekey1
|
||
|
|
||
|
- name: Validate privatekey1 (assert)
|
||
|
assert:
|
||
|
that:
|
||
|
- privatekey1.stdout == '4096'
|
||
|
|
||
|
|
||
|
- name: Validate privatekey2 (test)
|
||
|
shell: "openssl rsa -noout -text -in {{ output_dir }}/privatekey2.pem | grep Private | sed 's/Private-Key: (\\(.*\\) bit)/\\1/'"
|
||
|
register: privatekey2
|
||
|
|
||
|
- name: Validate privatekey2 (assert)
|
||
|
assert:
|
||
|
that:
|
||
|
- privatekey2.stdout == '2048'
|
||
|
|
||
|
|
||
|
- name: Validate privatekey3 (test)
|
||
|
shell: "openssl dsa -noout -text -in {{ output_dir }}/privatekey3.pem | grep Private | sed 's/Private-Key: (\\(.*\\) bit)/\\1/'"
|
||
|
register: privatekey3
|
||
|
|
||
|
- name: Validate privatekey3 (assert)
|
||
|
assert:
|
||
|
that:
|
||
|
- privatekey1.stdout == '4096'
|