From 7773dad943b53ae97ceb49a74810fd58d9395b4f Mon Sep 17 00:00:00 2001 From: Michael Grote <38253905+quotengrote@users.noreply.github.com> Date: Wed, 23 Dec 2020 09:42:48 +0100 Subject: [PATCH] Rolle: deactivate_ssh_password_login - Validation eingebaut --- roles/mgrote.deactivate_ssh_password_login/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mgrote.deactivate_ssh_password_login/tasks/main.yml b/roles/mgrote.deactivate_ssh_password_login/tasks/main.yml index 2558cd8d..d33c2416 100644 --- a/roles/mgrote.deactivate_ssh_password_login/tasks/main.yml +++ b/roles/mgrote.deactivate_ssh_password_login/tasks/main.yml @@ -6,5 +6,5 @@ regexp: '#PasswordAuthentication yes' line: 'PasswordAuthentication no' state: present -# backrefs: yes + validate: "/usr/sbin/sshd -T" notify: restart_sshd