-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
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
Replace default 2048 bits RSA keypair fails on Ubuntu 20.04 #459
Comments
Interesting, this does not happen in our CI. |
Ami name is ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20210430 . |
Same issue on a bare metal Debian 10 machine, but only if the playbook runs as non-root (with become password). Looking into
(Though this gives What is the recommended approach? Edit: Warning could be fixed by setting |
Same error on Ubuntu 21.10 Server Minimized |
Same error on Amazon Linux AMI 2018.03. |
I had same error on Ubuntu 22.04 but could solve it by runing playbook as sudo. |
This role needs to run with root privileges, since we are changing a lot of system files. In the past we relied on our users adding |
Describe the bug
Fresh install of Ubuntu 20.04, simple playbook to apply ssh_hardening fails to regenerate the host key.
Actual behavior
Example Playbook
OS / Environment
Ubuntu 20.04 running on AWS.
Ansible Version
Role Version
The text was updated successfully, but these errors were encountered: