Created
August 27, 2014 15:15
-
-
Save TTimo/d2b8c8b82193d3b8b079 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sshd_root_login: | |
file.replace: | |
- name: /etc/ssh/sshd_config | |
- pattern: ".*PermitRootLogin .*" | |
- repl: "PermitRootLogin no" | |
ssh: | |
service.restart: | |
- onchanges: | |
- file: sshd_root_login |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment