From af5d158db385ba25b3236e63a93fe9ac646bfd67 Mon Sep 17 00:00:00 2001 From: Jan-Frode Myklebust Date: Thu, 22 Apr 2021 13:40:30 +0200 Subject: [PATCH] Make sure scale_prepare_enable_ssh_login configures the active configuration. This fixes issue #473 where enabling scale_prepare_enable_ssh_login would cause duplicate PermitRootLogin lines if it was already configured to something else than "yes". Signed-off-by: Jan-Frode Myklebust --- roles/core/precheck/tasks/prepare.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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