-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add validate
option to lineinfile module to edit the sshd config file in chapter 10
#273
Comments
Need to check sshd service is started first before run the command, ortherwise will have error,
|
planning to add https://github.com/jtesta/ssh-audit the check ssh is secure or not. |
Fixed in the book's manuscript. Will be in the next book version. |
To prevent users from blowing up their SSH server configuration and locking them out from their servers, we can add a
validate
to thelineinfile
example modifying the sshd_config file in Chapter 10. For example, we created the following task in the May 20 Ansible 101 livestream (see #269):The text was updated successfully, but these errors were encountered: