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
Ansible runs on Ubuntu 20.04 inside WSL2 on Windows 11.
STEPS TO REPRODUCE
Use the openssh_cert module to sign a host certificate using the same files and same parameters. Set regenerate to full_idempotence. The module will create a new certificate on every run, just like regenerate: always
The default partial_idempotence does not create a new certificate.
The full_idempotence options looks at these additional attributes when deciding to regenerate a certificate:
identifier (is empty, but setting this to the same string each time still regenerates the certificate)
options (are empty, there are no options for host certificates)
public_key (is the same file on disk every run, it is even in a git repo so I can see that no changes are taking place)
signing_key (is the same file on disk every run, it is even in a git repo so I can see that no changes are taking place)
The certificate is regenerated on every run. The "sign ssh kost key" task is the only task that I ran, all others a commented out. Inthe output you can see that the after and before sections are identical.
SUMMARY
When using "regenerate: full_idempotence" the openssh_cert module generates a new certificate even if nothing changed.
ISSUE TYPE
COMPONENT NAME
community.crypto.openssh_cert
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ansible runs on Ubuntu 20.04 inside WSL2 on Windows 11.
STEPS TO REPRODUCE
Use the openssh_cert module to sign a host certificate using the same files and same parameters. Set regenerate to full_idempotence. The module will create a new certificate on every run, just like regenerate: always
The default partial_idempotence does not create a new certificate.
The full_idempotence options looks at these additional attributes when deciding to regenerate a certificate:
EXPECTED RESULTS
The certificate should not be regenerated.
ACTUAL RESULTS
The certificate is regenerated on every run. The "sign ssh kost key" task is the only task that I ran, all others a commented out. Inthe output you can see that the after and before sections are identical.
The text was updated successfully, but these errors were encountered: