2022-05-03 17:22:55 +00:00
|
|
|
---
|
2022-07-21 05:27:26 +00:00
|
|
|
# Copyright (c) Ansible Project
|
|
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2022-05-03 17:22:55 +00:00
|
|
|
- name: Run crypto_info
|
|
|
|
community.crypto.crypto_info:
|
|
|
|
register: result
|
|
|
|
|
|
|
|
- name: Dump result
|
|
|
|
debug:
|
|
|
|
var: result
|
|
|
|
|
|
|
|
- name: Validate result
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- result.openssl_present
|
|
|
|
- result.python_cryptography_installed
|
|
|
|
- result.python_cryptography_capabilities.has_dsa
|
|
|
|
- result.python_cryptography_capabilities.has_dsa_sign
|
|
|
|
- result.python_cryptography_capabilities.has_ec
|
|
|
|
- result.python_cryptography_capabilities.has_ec_sign
|
|
|
|
- result.python_cryptography_capabilities.has_ed25519
|
|
|
|
- result.python_cryptography_capabilities.has_ed25519_sign
|
|
|
|
- result.python_cryptography_capabilities.has_ed448
|
|
|
|
- result.python_cryptography_capabilities.has_ed448_sign
|
|
|
|
- result.python_cryptography_capabilities.has_rsa
|
|
|
|
- result.python_cryptography_capabilities.has_rsa_sign
|
|
|
|
- result.python_cryptography_capabilities.has_x25519
|
|
|
|
- result.python_cryptography_capabilities.has_x25519_serialization
|
|
|
|
- result.python_cryptography_capabilities.has_x448
|