change sshd_config to no root password
This commit is contained in:
parent
2cb4b23cd5
commit
22ebc83dba
|
@ -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
|
||||
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
|
Loading…
Reference in New Issue