2022-11-24 09:02:00 +00:00

10 lines
179 B
YAML

---
- hosts: all
tasks:
- replace:
path: /etc/ssh/sshd_config
regexp: 'PermitRootLogin yes'
replace: 'PermitRootLogin prohibit-password'
backup: yes