ansible/tasks/provisioning/post-install/ssh.yml
2025-05-07 22:12:32 +08:00

7 lines
177 B
YAML

- name: Disable root login
lineinfile:
path: "{{ sshd_config_file }}"
regexp: "^PermitRootLogin"
line: "PermitRootLogin no"
backup: yes
notify: restart sshd