change sshd_config to no root password

This commit is contained in:
Ruben Blanco 2023-10-18 10:58:33 +02:00
parent 2cb4b23cd5
commit 22ebc83dba
1 changed files with 1 additions and 1 deletions

View File

@ -27,6 +27,7 @@
regexp: "PermitRootLogin yes"
line: "#PermitRootLogin prohibit-password"
state: present
notify: Restart ssh service
#- name: change sshd_config to no root password
# copy:
# src: "{{ source_path_ssh }}"
@ -41,7 +42,6 @@
# path: "{{ source_path_ssh }}"
# state: absent
# notify: Restart ssh service
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++