Last active
August 29, 2015 14:05
-
-
Save TTimo/e7249daf3d1b55366738 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" | |
"service ssh restart": | |
cmd.run: | |
- onchanges: | |
- file: sshd_root_login |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment