"When creating a new keypair the ec2_key module prints out the private key directly to the standard output. I wasn't able to find any way to disable this behavior in the module's documentation. This makes it unusable in any kind of public CI workflow such as GHA." Confirmed impacting all collection releases, and back to ansible-core 2.8 (did not test further back).
This issue has been solved in the following releases: https://access.redhat.com/errata/RHBA-2023:5666 https://access.redhat.com/errata/RHBA-2023:5653