From 7b709c2c690c7e01db5fde7cfd64114f75aeed22 Mon Sep 17 00:00:00 2001 From: Patrick Thomas Date: Wed, 18 Dec 2024 10:59:09 +0100 Subject: [PATCH] Fix for issue 136 --- tasks/ssh.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tasks/ssh.yml b/tasks/ssh.yml index 75d1f4e..133d5a6 100644 --- a/tasks/ssh.yml +++ b/tasks/ssh.yml @@ -13,19 +13,19 @@ validate: 'sshd -T -f %s' mode: 0644 with_items: - - regexp: "^PasswordAuthentication" + - regexp: "^#?PasswordAuthentication" line: "PasswordAuthentication {{ security_ssh_password_authentication }}" - - regexp: "^PermitRootLogin" + - regexp: "^#?PermitRootLogin" line: "PermitRootLogin {{ security_ssh_permit_root_login }}" - - regexp: "^Port" + - regexp: "^#?Port" line: "Port {{ security_ssh_port }}" - - regexp: "^UseDNS" + - regexp: "^#?UseDNS" line: "UseDNS {{ security_ssh_usedns }}" - - regexp: "^PermitEmptyPasswords" + - regexp: "^#?PermitEmptyPasswords" line: "PermitEmptyPasswords {{ security_ssh_permit_empty_password }}" - - regexp: "^ChallengeResponseAuthentication" + - regexp: "^#?ChallengeResponseAuthentication" line: "ChallengeResponseAuthentication {{ security_ssh_challenge_response_auth }}" - - regexp: "^GSSAPIAuthentication" + - regexp: "^#?GSSAPIAuthentication" line: "GSSAPIAuthentication {{ security_ssh_gss_api_authentication }}" - regexp: "^X11Forwarding" line: "X11Forwarding {{ security_ssh_x11_forwarding }}"