We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When dumping / parsing a PKCS#12 file in check mode the corresponding task always results in 'changed' state.
ansible 2.10.3 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible executable location = /usr/local/bin/ansible python version = 3.6.9 (default, Oct 8 2020, 12:12:24) [GCC 8.4.0]
- name: Generate an OpenSSL private key with the default values (4096 bits, RSA) community.crypto.openssl_privatekey: path: /etc/ssl/private/ansible.com.pem - name: Generate an OpenSSL Certificate Signing Request community.crypto.openssl_csr: path: /etc/ssl/private/www.ansible.com.csr privatekey_path: /etc/ssl/private/ansible.com.pem common_name: www.ansible.com - name: Generate a Self Signed OpenSSL certificate community.crypto.x509_certificate: path: /etc/ssl/private/ansible.com.crt privatekey_path: /etc/ssl/private/ansible.com.pem csr_path: /etc/ssl/private/www.ansible.com.csr provider: selfsigned - name: Generate PKCS#12 file community.crypto.openssl_pkcs12: action: export path: /etc/ssl/private/ansible.p12 friendly_name: raclette privatekey_path: /etc/ssl/private/ansible.com.pem certificate_path: /etc/ssl/private/ansible.com.crt state: present - name: Dump/Parse PKCS#12 file community.crypto.openssl_pkcs12: action: parse src: /etc/ssl/private/ansible.p12 path: /etc/ssl/private/ansible.pem state: present
TASK [my_test : Dump/Parse PKCS#12 file] *************************************** ok: [instance]
TASK [my_test : Dump/Parse PKCS#12 file] *************************************** changed: [instance]
The text was updated successfully, but these errors were encountered:
That's apparently intended by the code: https://github.com/ansible-collections/community.crypto/blob/main/plugins/modules/openssl_pkcs12.py#L306
Sorry, something went wrong.
@felixfontein I wonder, is there a good reason for this?
@Normo I don't think so.
Successfully merging a pull request may close this issue.
SUMMARY
When dumping / parsing a PKCS#12 file in check mode the corresponding task always results in 'changed' state.
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: