ansible/plays/tasks/provisioning/post-install.yml
2025-05-08 09:17:30 +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