diff --git a/roles/core/precheck/tasks/prepare.yml b/roles/core/precheck/tasks/prepare.yml index c6efce73..9fd9a321 100644 --- a/roles/core/precheck/tasks/prepare.yml +++ b/roles/core/precheck/tasks/prepare.yml @@ -22,7 +22,7 @@ - name: prepare | Enable SSH root login lineinfile: path: /etc/ssh/sshd_config - regexp: PermitRootLogin + regexp: ^PermitRootLogin line: PermitRootLogin yes state: present notify: reload-sshd