publish to ansible-galaxy

This commit is contained in:
Uumas
2021-05-11 19:35:19 +03:00
parent a71699c922
commit 4ebae34d2a
7 changed files with 9 additions and 2 deletions

1
roles/ssh/README.md Normal file
View File

@@ -0,0 +1 @@
Configures ssh with sane settings

View File

@@ -1,10 +1,10 @@
---
- name: Disable SSH root login without password
lineinfile:
lineinfile:
path: /etc/ssh/sshd_config
regexp: '^#?PermitRootLogin .*$'
line: "PermitRootLogin prohibit-password"
line: "PermitRootLogin prohibit-password"
state: present
validate: '/usr/sbin/sshd -t -f %s'
notify: restart ssh