Open ricrodriguezg opened 2 years ago
Seems like this bug doesn't apply to deployments done on a Mac. Environment Details:
ansible [core 2.12.3]
config file = None
configured module search path = ['/Users/cris.madrigal/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.8/site-packages/ansible
ansible collection location = /Users/cris.madrigal/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.8.12 (default, Oct 13 2021, 06:42:42) [Clang 13.0.0 (clang-1300.0.29.3)]
jinja version = 2.11.2
libyaml = True
We got the error
"msg": "Certificate file does not exist | Private key file does not contain a valid private key | Private key file does not contain a valid private key"
when the Private Key was not "Stored in Software" in Venafi like this:
Same issue experienced here, and resolved with the workaround of providing specifically privatekey fields
PROBLEM SUMMARY When not specified, options
certificate_privatekey_type
andcertificate_privatekey_size
are not being set by default by the certificate role so when requesting a new certificate.STEPS TO REPRODUCE Request a certificate using the certificate role without
certificate_privatekey_type
andcertificate_privatekey_size
:EXPECTED RESULTS The task fails with the following error :
ACTUAL RESULTS The task fails with the following error :
ENVIRONMENT DETAILS
Machine Identity collection: 0.8.0
COMMENTS/WORKAROUNDS Add the options to the playbook: