You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The full traceback is:
Traceback (most recent call last):
File "/home/combell/twouters/.ansible/tmp/ansible-tmp-1622617686.6430984-72160-37957725581513/AnsiballZ_x509_certificate.py", line 100, in <module>
_ansiballz_main()
File "/home/combell/twouters/.ansible/tmp/ansible-tmp-1622617686.6430984-72160-37957725581513/AnsiballZ_x509_certificate.py", line 92, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/combell/twouters/.ansible/tmp/ansible-tmp-1622617686.6430984-72160-37957725581513/AnsiballZ_x509_certificate.py", line 41, in invoke_module
run_name='__main__', alter_sys=True)
File "/usr/lib/python2.7/runpy.py", line 188, in run_module
fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 82, in _run_module_code
mod_name, mod_fname, mod_loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/tmp/ansible_openssl_certificate_payload_EzbMG2/ansible_openssl_certificate_payload.zip/ansible_collections/community/crypto/plugins/modules/x509_certificate.py", line 555, in <module>
File "/tmp/ansible_openssl_certificate_payload_EzbMG2/ansible_openssl_certificate_payload.zip/ansible_collections/community/crypto/plugins/modules/x509_certificate.py", line 546, in main
File "/tmp/ansible_openssl_certificate_payload_EzbMG2/ansible_openssl_certificate_payload.zip/ansible_collections/community/crypto/plugins/modules/x509_certificate.py", line 465, in generate
File "/tmp/ansible_openssl_certificate_payload_EzbMG2/ansible_openssl_certificate_payload.zip/ansible_collections/community/crypto/plugins/module_utils/crypto/module_backends/certificate_assertonly.py", line 320, in needs_regeneration
File "/tmp/ansible_openssl_certificate_payload_EzbMG2/ansible_openssl_certificate_payload.zip/ansible_collections/community/crypto/plugins/module_utils/crypto/module_backends/certificate_assertonly.py", line 181, in assertonly
AttributeError: 'AssertOnlyCertificateBackendCryptography' object has no attribute 'path'
SUMMARY
Ansible module throws an exception when a certificate does not match a specified private key.
Works fine if they do match.
Example below: domain1.crt.tmp belongs to domain1.key.tmp and succeeds.
domain2.crt.tmp does not belong to domain2.key.tmp.
ISSUE TYPE
COMPONENT NAME
community.crypto.x509_certificate
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Arch Linux
STEPS TO REPRODUCE
See description
EXPECTED RESULTS
No exception is thrown.
ACTUAL RESULTS
See description
The text was updated successfully, but these errors were encountered: